diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-16 13:33:29 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-16 13:33:29 -0400 |
commit | 7022357c8cd7888e04252b8964882d0e081032df (patch) | |
tree | eccbd555c8494f733c598d18be93d046f84af975 /app/views/projects | |
parent | d9812bae49db3b3af7afe702d7b60d75f05d0fad (diff) | |
download | gitlab-ce-7022357c8cd7888e04252b8964882d0e081032df.tar.gz |
Add sorting dropdown to tag page14918-add-filter-dropdown-to-tag-page
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/tags/index.html.haml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/views/projects/tags/index.html.haml b/app/views/projects/tags/index.html.haml index 2779084fe38..4ca1f58ac5c 100644 --- a/app/views/projects/tags/index.html.haml +++ b/app/views/projects/tags/index.html.haml @@ -11,12 +11,23 @@ .nav-controls = link_to new_namespace_project_tag_path(@project.namespace, @project), class: 'btn btn-create new-tag-btn' do New tag + .dropdown.inline + %button.dropdown-toggle.btn{ type: 'button', data: { toggle: 'dropdown'} } + %span.light= @sort.humanize + %b.caret + %ul.dropdown-menu.dropdown-menu-align-right + %li + = link_to namespace_project_tags_path(sort: nil) do + Name + = link_to namespace_project_tags_path(sort: sort_value_recently_updated) do + = sort_title_recently_updated + = link_to namespace_project_tags_path(sort: sort_value_oldest_updated) do + = sort_title_oldest_updated .tags - unless @tags.empty? %ul.content-list - - @tags.each do |tag| - = render 'tag', tag: @repository.find_tag(tag) + = render partial: 'tag', collection: @tags = paginate @tags, theme: 'gitlab' |