debian-mirror-gitlab/app/views/projects/issues/_issue.html.haml

53 lines
2 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
2014-09-02 18:07:02 +05:30
- if controller.controller_name == 'issues'
.issue-check
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)
.issue-title
%span.str-truncated
2015-04-26 12:48:37 +05:30
= link_to_gfm issue.title, issue_path(issue), class: "row_title"
.pull-right.light
- if issue.closed?
%span
CLOSED
- note_count = issue.notes.user.count
- if note_count > 0
 
%span
%i.fa.fa-comments
= note_count
2014-09-02 18:07:02 +05:30
.issue-info
2015-04-26 12:48:37 +05:30
= link_to "##{issue.iid}", issue_path(issue), class: "light"
2014-09-02 18:07:02 +05:30
- if issue.assignee
assigned to #{link_to_member(@project, issue.assignee)}
- if issue.votes_count > 0
= render 'votes/votes_inline', votable: issue
- if issue.milestone
%span
2015-04-26 12:48:37 +05:30
%i.fa.fa-clock-o
2014-09-02 18:07:02 +05:30
= issue.milestone.title
2015-04-26 12:48:37 +05:30
- if issue.tasks?
%span.task-status
= issue.task_status
.pull-right.issue-updated-at
2014-09-02 18:07:02 +05:30
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}
.issue-labels
- issue.labels.each do |label|
2015-04-26 12:48:37 +05:30
= link_to namespace_project_issues_path(issue.project.namespace, issue.project, label_name: label.name) do
= render_colored_label(label)
2014-09-02 18:07:02 +05:30
.issue-actions
- if can? current_user, :modify_issue, issue
- if issue.closed?
2015-04-26 12:48:37 +05:30
= link_to 'Reopen', issue_path(issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-sm btn-grouped reopen_issue btn-reopen", remote: true
2014-09-02 18:07:02 +05:30
- else
2015-04-26 12:48:37 +05:30
= link_to 'Close', issue_path(issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-sm btn-grouped close_issue btn-close", remote: true
= link_to edit_namespace_project_issue_path(issue.project.namespace, issue.project, issue), class: "btn btn-sm edit-issue-link btn-grouped" do
%i.fa.fa-pencil-square-o
2014-09-02 18:07:02 +05:30
Edit