Commit 4e4740285261a098b364e804a906a349731e71a3
1 parent
793db070
Exists in
master
and in
4 other branches
Fixed project last_activity. Links color changed a bit
Showing
4 changed files
with
20 additions
and
20 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 | } |
9 | 9 | |
10 | 10 | &.btn-primary { |
11 | - background:$link_color; | |
11 | + background:#2a79A3; | |
12 | 12 | border-color: #2A79A3; |
13 | 13 | &:hover { |
14 | 14 | background:$blue_link; |
... | ... | @@ -31,16 +31,16 @@ |
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | - &.save-btn { | |
34 | + &.save-btn { | |
35 | 35 | @extend .wide; |
36 | 36 | @extend .primary; |
37 | 37 | } |
38 | 38 | |
39 | - &.cancel-btn { | |
39 | + &.cancel-btn { | |
40 | 40 | float:right; |
41 | 41 | } |
42 | 42 | |
43 | - &.wide { | |
43 | + &.wide { | |
44 | 44 | padding-left:30px; |
45 | 45 | padding-right:30px; |
46 | 46 | } | ... | ... |
app/assets/stylesheets/gitlab_bootstrap/typography.scss
1 | -/** | |
1 | +/** | |
2 | 2 | * Headers |
3 | - * | |
3 | + * | |
4 | 4 | */ |
5 | 5 | h3, h4, h5, h6 { line-height: 36px; } |
6 | 6 | h5 { font-size:14px; } |
7 | -h3.page_title { | |
7 | +h3.page_title { | |
8 | 8 | color:#456; |
9 | 9 | font-size:20px; |
10 | 10 | font-weight: normal; |
... | ... | @@ -21,9 +21,9 @@ pre { |
21 | 21 | } |
22 | 22 | } |
23 | 23 | |
24 | -/** | |
24 | +/** | |
25 | 25 | * Links |
26 | - * | |
26 | + * | |
27 | 27 | */ |
28 | 28 | a { |
29 | 29 | outline: none; |
... | ... | @@ -35,7 +35,7 @@ a { |
35 | 35 | |
36 | 36 | &.btn { |
37 | 37 | color: $style_color; |
38 | - &:hover { | |
38 | + &:hover { | |
39 | 39 | color: $style_color; |
40 | 40 | } |
41 | 41 | } | ... | ... |
app/assets/stylesheets/main.scss
... | ... | @@ -2,13 +2,13 @@ |
2 | 2 | @import "bootstrap-responsive"; |
3 | 3 | |
4 | 4 | /** GITLAB colors **/ |
5 | -$link_color:#2A79A3; | |
5 | +$link_color:#3A89A3; | |
6 | 6 | $blue_link: #2fa0bb; |
7 | -$style_color: #474D57; | |
8 | -$hover: #FDF5D9; | |
7 | +$style_color: #474d57; | |
8 | +$hover: #fdf5d9; | |
9 | 9 | |
10 | 10 | /** GITLAB Fonts **/ |
11 | -@font-face { font-family: Korolev; src: url('korolev-medium-compressed.otf'); } | |
11 | +@font-face { font-family: Korolev; src: url('korolev-medium-compressed.otf'); } | |
12 | 12 | |
13 | 13 | /** MIXINS **/ |
14 | 14 | @mixin shade { |
... | ... | @@ -56,7 +56,7 @@ $hover: #FDF5D9; |
56 | 56 | border-radius: $radius; |
57 | 57 | } |
58 | 58 | |
59 | -@mixin bg-gray-gradient { | |
59 | +@mixin bg-gray-gradient { | |
60 | 60 | background:#eee; |
61 | 61 | background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf)); |
62 | 62 | background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf); |
... | ... | @@ -64,7 +64,7 @@ $hover: #FDF5D9; |
64 | 64 | background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf); |
65 | 65 | } |
66 | 66 | |
67 | -@mixin bg-dark-gray-gradient { | |
67 | +@mixin bg-dark-gray-gradient { | |
68 | 68 | background:#eee; |
69 | 69 | background-image: -webkit-linear-gradient(#e9e9e9, #d7d7d7); |
70 | 70 | background-image: -moz-linear-gradient(#e9e9e9, #d7d7d7); | ... | ... |
app/models/project.rb
... | ... | @@ -8,7 +8,7 @@ class Project < ActiveRecord::Base |
8 | 8 | |
9 | 9 | # |
10 | 10 | # Relations |
11 | - # | |
11 | + # | |
12 | 12 | belongs_to :owner, class_name: "User" |
13 | 13 | has_many :users, through: :users_projects |
14 | 14 | has_many :events, dependent: :destroy |
... | ... | @@ -25,12 +25,12 @@ class Project < ActiveRecord::Base |
25 | 25 | |
26 | 26 | attr_accessor :error_code |
27 | 27 | |
28 | - # | |
28 | + # | |
29 | 29 | # Protected attributes |
30 | 30 | # |
31 | 31 | attr_protected :private_flag, :owner_id |
32 | 32 | |
33 | - # | |
33 | + # | |
34 | 34 | # Scopes |
35 | 35 | # |
36 | 36 | scope :public_only, where(private_flag: false) |
... | ... | @@ -158,7 +158,7 @@ class Project < ActiveRecord::Base |
158 | 158 | end |
159 | 159 | |
160 | 160 | def last_activity |
161 | - events.last || nil | |
161 | + events.order("created_at DESC").first || nil | |
162 | 162 | end |
163 | 163 | |
164 | 164 | def last_activity_date | ... | ... |