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