- @commits.group_by { |c| c.committed_date.to_date }.each do |day, commits|
- .day-commits-table
- .day-header
+ %div{ :class => "commits-date ui-box ui-box-small ui-box-big" }
+ .day-commits-table
%h3= day.stamp("28 Aug, 2010")
- %ul
- - commits.each do |commit|
- %li{ :class => "commit", :url => project_commit_path(@project, :id => commit.id) }
- - if commit.author.email
- = image_tag gravatar_icon(commit.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
- - else
- = image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
- %p
- %strong
- = truncate(commit.safe_message, :length => 60)
- = link_to "Browse Code", tree_project_path(@project, :commit_id => commit.id), :class => "lite_button", :style => "float:right"
- = link_to truncate(commit.id.to_s, :length => 16), project_commit_path(@project, :id => commit.id), :class => "lite_button", :style => "width:120px;float:right"
- %span
- %span.author
- = commit.author
- = time_ago_in_words(commit.committed_date)
- ago
+ .data
+ - commits.each do |commit|
+ %a{ :class => "commit", :href => project_commit_path(@project, :id => commit.id) }
+ %span.commit-info
+ %data.commit-button
+ = truncate(commit.id.to_s, :length => 16)
+ %i
+ %data.commit-browse{ :onclick => "location.href='#{tree_project_path(@project, :commit_id => commit.id)}';return false;"}
+ Browse Code
+ - if commit.author.email
+ = image_tag gravatar_icon(commit.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
+ - else
+ = image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
+ %span.commit-title
+ %strong
+ = truncate(commit.safe_message, :length => 60)
+ %span.commit-author
+ %strong= commit.author
+ = time_ago_in_words(commit.committed_date)
+ ago
= more_commits_link if @commits.size > 99
= javascript_tag do
REQ_URI = "#{request.env["REQUEST_URI"]}";
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
- %body.project-page
+ %body{ :class => content_for?(:body_class) ? yield(:body_class) : 'project-page', :id => yield(:boyd_id)}
#container
= render :partial => "layouts/flash"
= render :partial => "layouts/head_panel"
.fixed
%input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo}
%aside
- = link_to image_tag("home.png", :width => 20), project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
+ = link_to "History", project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
= link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil
= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
= link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do
Team
- if @project.users_projects.count > 0
- %span{ :class => "top_menu_count" }= @project.users_projects.count
+ %span{ :class => "number" }= @project.users_projects.count
= link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
Issues
- if @project.issues.opened.count > 0
- %span{ :class => "top_menu_count" }= @project.issues.opened.count
+ %span{ :class => "number" }= @project.issues.opened.count
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
Wall
- if @project.common_notes.count > 0
- %span{ :class => "top_menu_count" }= @project.common_notes.count
+ %span{ :class => "number" }= @project.common_notes.count
= link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
Snippets
- if @project.snippets.count > 0
- %span{ :class => "top_menu_count" }= @project.snippets.non_expired.count
+ %span{ :class => "number" }= @project.snippets.non_expired.count
- if @commit
= link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil