diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 8cf67d4d6..b14b265ed 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -47,6 +47,10 @@ body.admin { .is-featured { margin-top: rem-calc(36); } + + .select-order { + min-width: rem-calc(160); + } } // 02. Sidebar @@ -201,12 +205,16 @@ body.admin { .button.tiny.success { margin-left: rem-calc(12); + + &.no-margin { + margin-left: 0; + } } .moderation-description { max-height: rem-calc(65); overflow: hidden; - max-width: rem-calc(750); + max-width: rem-calc(590); &:hover { cursor: text; diff --git a/app/views/admin/debates/index.html.erb b/app/views/admin/debates/index.html.erb index 118a0ae66..9718d4fa9 100644 --- a/app/views/admin/debates/index.html.erb +++ b/app/views/admin/debates/index.html.erb @@ -4,25 +4,33 @@
|
+ <%= debate.title %>
+ +
+ <%= debate.description %>
+
+ |
+ + <%= link_to t("admin.actions.restore"), + restore_admin_debate_path(debate, request.query_parameters), method: :put, - class: "button radius tiny warning right" %> - <% end %> - + data: { confirm: t("admin.actions.confirm") }, + class: "button radius tiny success no-margin" %> + | ++ <% unless debate.confirmed_hide? %> + <%= link_to t("admin.actions.confirm_hide"), + confirm_hide_admin_debate_path(debate, request.query_parameters), + method: :put, + class: "button radius tiny warning right" %> + <% end %> + | +
|
+ <%= proposal.title %>
+ +
+ <%= proposal.description %>
+
+ |
+ + <%= link_to t("admin.actions.restore"), + restore_admin_proposal_path(proposal, request.query_parameters), method: :put, - class: "button radius tiny warning right" %> - <% end %> - + data: { confirm: t("admin.actions.confirm") }, + class: "button radius tiny success no-margin" %> + | ++ <% unless proposal.confirmed_hide? %> + <%= link_to t("admin.actions.confirm_hide"), + confirm_hide_admin_proposal_path(proposal, request.query_parameters), + method: :put, + class: "button radius tiny warning right" %> + <% end %> + | +
+
<%= t('shared.check') %>: <%= link_to t('shared.check_all'), '#', data: {check_all: "debate_ids[]"} %> | <%= link_to t('shared.check_none'), '#', data: {check_none: "debate_ids[]"} %>
-|
<%= t("moderation.debates.index.headers.debate") %>
diff --git a/app/views/moderation/proposals/index.html.erb b/app/views/moderation/proposals/index.html.erb
index 38957eb7d..945fa8085 100644
--- a/app/views/moderation/proposals/index.html.erb
+++ b/app/views/moderation/proposals/index.html.erb
@@ -13,14 +13,14 @@
<%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %>
- + <%= t('shared.check') %>: <%= link_to t('shared.check_all'), '#', data: {check_all: "proposal_ids[]"} %> | <%= link_to t('shared.check_none'), '#', data: {check_none: "proposal_ids[]"} %> -
|
|---|