Commit 62112dc0c7eae8d8c8e3d55fc13d3d58b7588899
1 parent
6e08b5cc
Exists in
master
and in
4 other branches
add tags to project list
Showing
3 changed files
with
21 additions
and
16 deletions
Show diff stats
app/assets/stylesheets/projects.css.scss
@@ -270,20 +270,6 @@ input.ssh_project_url { | @@ -270,20 +270,6 @@ input.ssh_project_url { | ||
270 | } | 270 | } |
271 | } | 271 | } |
272 | 272 | ||
273 | -#projects-list .small-tags a{ | ||
274 | - font-size: 9px; | ||
275 | - | ||
276 | - display: inline-block; | ||
277 | - padding: 2px 3px 1px 3px; | ||
278 | - margin: 0px 3px 0px 0px; | ||
279 | - border-radius: 2px; | ||
280 | - background-color: #3b6bce; | ||
281 | - color: #FFF; | ||
282 | - text-shadow: none; | ||
283 | - font-weight: bold; | ||
284 | -} | ||
285 | - | ||
286 | - | ||
287 | .clear { | 273 | .clear { |
288 | clear: both; | 274 | clear: both; |
289 | } | 275 | } |
app/assets/stylesheets/tags.css.css
@@ -8,9 +8,23 @@ | @@ -8,9 +8,23 @@ | ||
8 | padding: 8px 11px 8px 11px; | 8 | padding: 8px 11px 8px 11px; |
9 | margin: 1px 5px 0px 0px; | 9 | margin: 1px 5px 0px 0px; |
10 | border-radius: 4px; | 10 | border-radius: 4px; |
11 | - border: 1px solid #d0e1ff; | ||
12 | - background-color: #d0e1ff; | 11 | + border: 1px solid #72bbdf; |
12 | + background-color: #72bbdf; | ||
13 | color: #0f326d; | 13 | color: #0f326d; |
14 | font-weight: bold; | 14 | font-weight: bold; |
15 | font-size: 14px; | 15 | font-size: 14px; |
16 | +} | ||
17 | + | ||
18 | + | ||
19 | +.small-tags a{ | ||
20 | + font-size: 9px; | ||
21 | + | ||
22 | + display: inline-block; | ||
23 | + padding: 2px 3px 1px 3px; | ||
24 | + margin: 0px 3px 0px 0px; | ||
25 | + border-radius: 2px; | ||
26 | + background-color: #72bbdf; | ||
27 | + color: #FFF; | ||
28 | + text-shadow: none; | ||
29 | + font-weight: bold; | ||
16 | } | 30 | } |
17 | \ No newline at end of file | 31 | \ No newline at end of file |
app/views/projects/_tile.html.haml
@@ -12,6 +12,11 @@ | @@ -12,6 +12,11 @@ | ||
12 | %span Last Activity: | 12 | %span Last Activity: |
13 | - last_note = project.notes.last | 13 | - last_note = project.notes.last |
14 | = last_note ? last_note.created_at.stamp("24 Aug, 2011") : "Never" | 14 | = last_note ? last_note.created_at.stamp("24 Aug, 2011") : "Never" |
15 | + | ||
16 | + %p.small-tags | ||
17 | + - project.tag_list.each do |tag| | ||
18 | + = link_to tag, "/tags/#{tag}" | ||
19 | + | ||
15 | .buttons | 20 | .buttons |
16 | %a.browse-code.button.yellow{:href => tree_project_path(project)} Browse code | 21 | %a.browse-code.button.yellow{:href => tree_project_path(project)} Browse code |
17 | %a.commits.button.green{:href => project_commits_path(project)} Commits | 22 | %a.commits.button.green{:href => project_commits_path(project)} Commits |