Use CSS to add separators to the debates featured action
Just like we do in the moderation actions displayed next to id.
This commit is contained in:
7
app/assets/stylesheets/debates/mark_featured_action.scss
Normal file
7
app/assets/stylesheets/debates/mark_featured_action.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.debate-show .mark-featured-action {
|
||||
display: inline;
|
||||
|
||||
&::before {
|
||||
@include vertical-separator;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,17 @@
|
||||
|
|
||||
<% if debate.featured? %>
|
||||
<%= link_to t("admin.actions.unmark_featured").capitalize,
|
||||
unmark_featured_debate_path(debate),
|
||||
method: :put,
|
||||
data: { confirm: t("admin.actions.confirm_action",
|
||||
action: t("admin.actions.unmark_featured"),
|
||||
name: debate.title) } %>
|
||||
<% else %>
|
||||
<%= link_to t("admin.actions.mark_featured").capitalize,
|
||||
mark_featured_debate_path(debate),
|
||||
method: :put,
|
||||
data: { confirm: t("admin.actions.confirm_action",
|
||||
action: t("admin.actions.mark_featured"),
|
||||
name: debate.title) } %>
|
||||
<% end %>
|
||||
<div class="mark-featured-action">
|
||||
<% if debate.featured? %>
|
||||
<%= link_to t("admin.actions.unmark_featured").capitalize,
|
||||
unmark_featured_debate_path(debate),
|
||||
method: :put,
|
||||
data: { confirm: t("admin.actions.confirm_action",
|
||||
action: t("admin.actions.unmark_featured"),
|
||||
name: debate.title) } %>
|
||||
<% else %>
|
||||
<%= link_to t("admin.actions.mark_featured").capitalize,
|
||||
mark_featured_debate_path(debate),
|
||||
method: :put,
|
||||
data: { confirm: t("admin.actions.confirm_action",
|
||||
action: t("admin.actions.mark_featured"),
|
||||
name: debate.title) } %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user