diff --git a/app/views/shared/_sidebar.haml b/app/views/shared/_sidebar.haml index 7d76746c..7b36b281 100644 --- a/app/views/shared/_sidebar.haml +++ b/app/views/shared/_sidebar.haml @@ -10,10 +10,10 @@ = current_user.screen_name - unless @list.nil? .card - .card-header= t('views.list.members') + .card-header= t(".list.title") .card-body - if @list.members.empty? - %p.text-muted No members yet. + %p.text-muted= t(".list.none") - @list.members.each do |member| %a{ href: user_path(member.user), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top } } %img.avatar-xs{ src: member.user.profile_picture.url(:medium) } diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index b524b552..e316160d 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -470,6 +470,10 @@ en: source: "Source code" terms: "Terms of Service" privacy: "Privacy Policy" + sidebar: + list: + title: "Members" + none: "No members yet." tabs: feed: public: "Public"