diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-12 00:00:00 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-12 17:19:14 +0400 |
commit | bd34ca3c33a56550a1b42b8c150bdba61c96bfbd (patch) | |
tree | 8a4dfb097ba4e6666dc2f6565e4e71100d27db3a /app/views/projects/_tile.html.haml | |
parent | 495d29da738c8ac53406110d7c3af3f6a3a59bfc (diff) |
project tile view
Diffstat (limited to 'app/views/projects/_tile.html.haml')
-rw-r--r-- | app/views/projects/_tile.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/projects/_tile.html.haml b/app/views/projects/_tile.html.haml new file mode 100644 index 00000000000..037aeccb228 --- /dev/null +++ b/app/views/projects/_tile.html.haml @@ -0,0 +1,16 @@ +- @projects.in_groups_of(3, false) do |projects| + - projects.each_with_index do |project, i| + %div{ :class => "project_thumb round-borders", :style => i == 2 ? "" : "margin-right:30px;" } + %div{ :class => "project", :url => project_path(project) } + %h2 + = image_tag gravatar_icon(project.name), :class => "left", :width => 40, :style => "padding-right:5px;" + = "/" + project.code + %p= project.name + %p= project.url_to_repo + -#%p + Commit – + = last_commit(project) + %hr + = link_to "Browse Code", tree_project_path(project), :class => "lbutton" + = link_to "Commits", project_commits_path(project), :class => "lbutton", :style => "float:right;width:80px;" + .clear |