From cba47b69a43157acb7c52e5185438b580b8b5859 Mon Sep 17 00:00:00 2001 From: divyabaid16 Date: Tue, 19 Mar 2019 20:09:37 +0530 Subject: [PATCH] Sort option --- app/views/tag/index.html.erb | 19 ++++++++++++++----- config/locales/en.yml | 4 ++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/app/views/tag/index.html.erb b/app/views/tag/index.html.erb index 945ea71eb3..224f700a1f 100644 --- a/app/views/tag/index.html.erb +++ b/app/views/tag/index.html.erb @@ -1,5 +1,5 @@ <%= javascript_include_tag('async_tag_subscriptions.js') %> -
+

<%= t('tag.index.popular_tags') %>

<% cache('feature_tags-header', skip_digest: true) do %> @@ -10,7 +10,7 @@
- + @@ -18,11 +18,20 @@

+

+ Sort by: + <%= t('tag.index.tag') %> | + <%= t('tag.index.number_of_subscriptions')%> | + <%= t('tag.index.number_of_uses') %> + +

+
+ - - - + + + <% if current_user %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 6817f3d7ce..1f6f4ae8a9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -364,9 +364,9 @@ en: popular_tags: "Popular tags" browse_popular_tags: "We use tags to group research by topic -- browse below to see the most popular tags over the past month." - tag: "Tag" + tag: "name" number_of_uses: "# of uses" - number_of_subscriptions: "# of people subscribed" + number_of_subscriptions: "# of people" subscriptions: "Your subscriptions" sort_by: "Sort By" show:
<%= t('tag.index.tag') %> <%= t('tag.index.number_of_uses') %> <%= t('tag.index.number_of_subscriptions')%> <%= t('tag.index.tag') %><%= t('tag.index.number_of_uses') %><%= t('tag.index.number_of_subscriptions')%><%= t('tag.index.subscriptions') %>