Commit f4ae433d9017c0b6e9f3ffcb68dc0426ca7b721d

Authored by Dmitriy Zaporozhets
1 parent 5b06c9a7

Increase event title font size on dashboard activity feed

app/assets/stylesheets/sections/events.scss
... ... @@ -35,6 +35,7 @@
35 35 .event-title {
36 36 color: #333;
37 37 font-weight: bold;
  38 + font-size: 14px;
38 39 .author_name {
39 40 color: #333;
40 41 }
... ...
app/models/event.rb
... ... @@ -134,7 +134,7 @@ class Event < ActiveRecord::Base
134 134 if closed?
135 135 "closed"
136 136 elsif merged?
137   - "merged"
  137 + "accepted"
138 138 elsif joined?
139 139 'joined'
140 140 elsif left?
... ...
app/views/events/event/_common.html.haml
... ... @@ -2,11 +2,15 @@
2 2 %span.author_name= link_to_author event
3 3 %span.event_label{class: event.action_name}= event_action_name(event)
4 4 - if event.target
5   - %strong= link_to_gfm truncate(event.target_title), [event.project, event.target]
  5 + %strong= link_to "##{event.target_id}", [event.project, event.target]
6 6 - else
7   - %strong= gfm truncate(event.target_title)
  7 + %strong= gfm event.target_title
8 8 at
9 9 - if event.project
10 10 = link_to_project event.project
11 11 - else
12 12 = event.project_name
  13 +.event-body
  14 + .event-note
  15 + - if event.target.respond_to?(:title)
  16 + = event.target.title
... ...