Issues & MR legend
This commit is contained in:
parent
b64ceadbf2
commit
75cf927d3b
10 changed files with 158 additions and 9 deletions
|
@ -4,6 +4,15 @@
|
|||
%small.right #{@issues.total_count} issues
|
||||
|
||||
%br
|
||||
.issues_legend
|
||||
.list_legend
|
||||
.icon.critical
|
||||
.text Critical
|
||||
|
||||
.list_legend
|
||||
.icon.today
|
||||
.text Today
|
||||
.clearfix
|
||||
- if @issues.any?
|
||||
- @issues.group_by(&:project).each do |group|
|
||||
%div.ui-box
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
%li.wll{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(issue.project, issue) }
|
||||
%li.wll{ :id => dom_id(issue), :class => issue_css_classes(issue), :url => project_issue_path(issue.project, issue) }
|
||||
.list_legend
|
||||
.icon
|
||||
.right
|
||||
- if issue.notes.any?
|
||||
%span.btn.small.disabled.padded= pluralize issue.notes.count, 'note'
|
||||
|
@ -15,12 +17,8 @@
|
|||
%span.update-author
|
||||
assigned to
|
||||
%strong= issue.assignee_name
|
||||
- if issue.critical
|
||||
%span.label.important critical
|
||||
- if issue.today?
|
||||
%span.label.success today
|
||||
- if issue.upvotes > 0
|
||||
%span.label.success= "+#{issue.upvotes}"
|
||||
%span.badge.badge-success= "+#{issue.upvotes}"
|
||||
|
||||
= link_to project_issue_path(issue.project, issue) do
|
||||
%p.row_title= truncate(issue.title, :length => 100)
|
||||
|
|
|
@ -14,6 +14,21 @@
|
|||
= search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search span3 right neib' }
|
||||
|
||||
%br
|
||||
|
||||
.issues_legend
|
||||
.list_legend
|
||||
.icon.critical
|
||||
.text Critical
|
||||
|
||||
.list_legend
|
||||
.icon.closed
|
||||
.text Closed
|
||||
|
||||
.list_legend
|
||||
.icon.today
|
||||
.text Today
|
||||
.clearfix
|
||||
|
||||
%div#issues-table-holder.ui-box
|
||||
.title
|
||||
.row
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
%li.wll
|
||||
%li.wll{ :class => mr_css_classes(merge_request) }
|
||||
.list_legend
|
||||
.icon
|
||||
.right
|
||||
.left
|
||||
- if merge_request.notes.any?
|
||||
|
@ -14,6 +16,6 @@
|
|||
= time_ago_in_words(merge_request.created_at)
|
||||
ago
|
||||
- if merge_request.upvotes > 0
|
||||
%span.label.success= "+#{merge_request.upvotes}"
|
||||
%span.badge.badge-success= "+#{merge_request.upvotes}"
|
||||
= link_to project_merge_request_path(merge_request.project, merge_request) do
|
||||
%p.row_title= truncate(merge_request.title, :length => 80)
|
||||
|
|
|
@ -6,6 +6,20 @@
|
|||
|
||||
%br
|
||||
|
||||
.mrs_legend
|
||||
.list_legend
|
||||
.icon.today
|
||||
.text Today
|
||||
|
||||
.list_legend
|
||||
.icon.merged
|
||||
.text Merged
|
||||
|
||||
.list_legend
|
||||
.icon.closed
|
||||
.text Closed
|
||||
.clearfix
|
||||
|
||||
.ui-box
|
||||
.title
|
||||
%ul.nav.nav-pills
|
||||
|
@ -26,7 +40,7 @@
|
|||
= render @merge_requests
|
||||
- if @merge_requests.blank?
|
||||
%li
|
||||
%p.padded Nothing to show here
|
||||
%h4.nothing_here_message Nothing to show here
|
||||
- if @merge_requests.present?
|
||||
%li.bottom
|
||||
.row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue