Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTap <visibletrap@gmail.com>2016-02-17 16:52:12 +0300
committerTap <visibletrap@gmail.com>2016-02-17 16:52:12 +0300
commit2e81b1558bb02da5eacd24484a665a48e8a1cece (patch)
tree9843854846e2616075d7dbcaf0ca1527cb7de9a4 /app/views/shared/_label_row.html.haml
parent943bed68bc42d02246ddea63a25432d3aba709e7 (diff)
Label description and Label row
- Add label description - Show label row when filtering issues or merge requests by label
Diffstat (limited to 'app/views/shared/_label_row.html.haml')
-rw-r--r--app/views/shared/_label_row.html.haml12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/shared/_label_row.html.haml b/app/views/shared/_label_row.html.haml
new file mode 100644
index 00000000000..adfd4e02b2e
--- /dev/null
+++ b/app/views/shared/_label_row.html.haml
@@ -0,0 +1,12 @@
+.label-row
+ = link_to_label(label)
+ = markdown(label.description, pipeline: :single_line)
+
+ .pull-right
+ %strong.append-right-20
+ = link_to_label(label) do
+ = pluralize label.open_issues_count, 'open issue'
+
+ - if defined?(editable) && editable && can?(current_user, :admin_label, @project)
+ = link_to 'Edit', edit_namespace_project_label_path(@project.namespace, @project, label), class: 'btn btn-sm'
+ = link_to 'Delete', namespace_project_label_path(@project.namespace, @project, label), class: 'btn btn-sm btn-remove remove-row', method: :delete, remote: true, data: {confirm: "Remove this label? Are you sure?"}