BigW Consortium Gitlab

Commit d4bcf516 by Alfredo Sumaran

Show prioritized labels only on the first page and when there's labels created

parent 221d2e3a
......@@ -10,7 +10,10 @@
New label
.labels
- hide_class = 'hide' if ((params[:page].present? and params[:page] != '1') or @labels.blank?)
- hide_class = ''
-# Only show it in the first page
- if (params[:page].present? and params[:page] != '1') or @project.labels.blank? or (params[:page] == nil and @project.labels.blank?)
- hide_class = 'hide'
.prioritized-labels{ class: hide_class }
%h5 Prioritized Labels
%ul.content-list.manage-labels-list.js-prioritized-labels{ "data-url" => set_priorities_namespace_project_labels_path(@project.namespace, @project) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment