diff --git a/app/views/fields/tag_moderators_field/_form.html.erb b/app/views/fields/tag_moderators_field/_form.html.erb index 3aee083b1..8dc3aa3a8 100644 --- a/app/views/fields/tag_moderators_field/_form.html.erb +++ b/app/views/fields/tag_moderators_field/_form.html.erb @@ -2,7 +2,8 @@ <%= f.label field.attribute %>
- <%= f.text_field field.attribute, value: field.to_s, placeholder: "comma separated, space is optional. Example: 1,2,3" %> - comma separated, space is optional. Example: - 1,2,3 + <%= f.text_field field.attribute, value: field.to_s, placeholder: t("views.tags.moderator.placeholder") %> + + <%= t("views.tags.moderator.text_html", code: tag.code(t("views.tags.moderator.code"), style: "background: #D2D2D2; padding: 4px; border-radius: 5px; font-weight: bold;")) %> +
diff --git a/app/views/stories/tagged_articles/_sidebar.html.erb b/app/views/stories/tagged_articles/_sidebar.html.erb index ea7277c6b..fde4b89ea 100644 --- a/app/views/stories/tagged_articles/_sidebar.html.erb +++ b/app/views/stories/tagged_articles/_sidebar.html.erb @@ -5,12 +5,12 @@ <% if @tag_model && @tag_model.rules_html.present? %>
-

submission guidelines

+

<%= t("views.tags.sidebar.guidelines") %>

<%= sanitize @tag_model.rules_html %> - Create Post + <%= t("views.tags.sidebar.new") %>
@@ -18,7 +18,7 @@ <% if @tag_model && @tag_model.wiki_body_html.present? %>
-

about #<%= @tag %>

+

<%= t("views.tags.sidebar.about", tag: @tag) %>

<%= sanitize @tag_model.wiki_body_html %> @@ -28,7 +28,7 @@ <% if @tag_model.sponsorship && @tag_model.sponsorship.status == "live" && @tag_model.sponsorship.expires_at > Time.current %>
-

<%= @tag %> is sponsored by

+

<%= t("views.tags.sidebar.sponsor", tag: @tag) %>

<%= render "articles/single_sponsor", sponsorship: @tag_model.sponsorship %> @@ -38,7 +38,7 @@ <% if @moderators.present? %>
-

tag moderators

+

<%= t("views.tags.sidebar.mods") %>

<% @moderators.each do |user| %> @@ -53,7 +53,7 @@ <% end %>