Move changeset subscribe/unsubscribe locale strings out of javascripts
This commit is contained in:
parent
289c22daa7
commit
0cd90e76db
3 changed files with 8 additions and 8 deletions
|
@ -18,13 +18,13 @@
|
|||
<% if current_user %>
|
||||
<div class="col-auto">
|
||||
<% if @changeset.subscribers.exists?(current_user.id) %>
|
||||
<%= tag.button t("javascripts.changesets.show.unsubscribe"),
|
||||
<%= tag.button t(".unsubscribe"),
|
||||
:class => "btn btn-sm btn-primary",
|
||||
:name => "unsubscribe",
|
||||
:data => { :method => "POST",
|
||||
:url => api_changeset_unsubscribe_url(@changeset) } %>
|
||||
<% else %>
|
||||
<%= tag.button t("javascripts.changesets.show.subscribe"),
|
||||
<%= tag.button t(".subscribe"),
|
||||
:class => "btn btn-sm btn-primary",
|
||||
:name => "subscribe",
|
||||
:data => { :method => "POST",
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
<% if current_user %>
|
||||
<div class="col-auto">
|
||||
<% if @entry.subscribers.exists?(current_user.id) %>
|
||||
<%= link_to t("javascripts.changesets.show.unsubscribe"), diary_entry_unsubscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
|
||||
<%= link_to t(".unsubscribe"), diary_entry_unsubscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
|
||||
<% else %>
|
||||
<%= link_to t("javascripts.changesets.show.subscribe"), diary_entry_subscribe_path(@entry.user, @entry.id), :method => :post, :class => "btn btn-sm btn-primary" %>
|
||||
<%= link_to t(".subscribe"), diary_entry_subscribe_path(@entry.user, @entry.id), :method => :post, :class => "btn btn-sm btn-primary" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue