dries layout admin views
moves common <div class='left'> to layout
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<div class="left">
|
<h1><%= t("admin.comments.index.title") %></h1>
|
||||||
<h1><%= t("admin.comments.index.title") %></h1>
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @comments.each do |comment| %>
|
<% @comments.each do |comment| %>
|
||||||
<li id="<%= dom_id(comment) %>">
|
<li id="<%= dom_id(comment) %>">
|
||||||
<%= comment.body %>
|
<%= comment.body %>
|
||||||
@@ -10,5 +9,4 @@
|
|||||||
method: :put, data: { confirm: t("admin.actions.confirm") } %>
|
method: :put, data: { confirm: t("admin.actions.confirm") } %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
<div class="left">
|
<h1><%= t("admin.debates.index.title") %></h1>
|
||||||
<h1><%= t("admin.debates.index.title") %></h1>
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @debates.each do |debate| %>
|
<% @debates.each do |debate| %>
|
||||||
<%= link_to admin_debate_path(debate) do %>
|
<%= link_to admin_debate_path(debate) do %>
|
||||||
<li id="<%= dom_id(debate) %>">
|
<li id="<%= dom_id(debate) %>">
|
||||||
@@ -9,5 +8,4 @@
|
|||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
<div class="left">
|
<h1><%= t("admin.debates.index.title") %></h1>
|
||||||
<h1><%= t("admin.debates.index.title") %></h1>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div><%= @debate.title %></div>
|
<div><%= @debate.title %></div>
|
||||||
<div><%= @debate.description %></div>
|
<div><%= @debate.description %></div>
|
||||||
|
|
||||||
@@ -9,5 +8,4 @@
|
|||||||
<%= link_to t('admin.actions.restore'), restore_admin_debate_path(@debate),
|
<%= link_to t('admin.actions.restore'), restore_admin_debate_path(@debate),
|
||||||
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
<div class="left">
|
<h1><%= t("admin.tags.index.add_tag") %></h1>
|
||||||
<h1><%= t("admin.tags.index.add_tag") %></h1>
|
|
||||||
|
|
||||||
<%= form_for(@tag, url: admin_tags_path, as: :tag) do |f| %>
|
<%= form_for(@tag, url: admin_tags_path, as: :tag) do |f| %>
|
||||||
<%= f.text_field :name, placeholder: t("admin.tags.name.placeholder") %>
|
<%= f.text_field :name, placeholder: t("admin.tags.name.placeholder") %>
|
||||||
<%= f.check_box :featured, label: false %>
|
<%= f.check_box :featured, label: false %>
|
||||||
<%= t("admin.tags.mark_as_featured") %>
|
<%= t("admin.tags.mark_as_featured") %>
|
||||||
<%= f.submit(class: "button radius small") %>
|
<%= f.submit(class: "button radius small") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<h1><%= t("admin.tags.index.title") %></h1>
|
<h1><%= t("admin.tags.index.title") %></h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @tags.each do |tag| %>
|
<% @tags.each do |tag| %>
|
||||||
<li>
|
<li>
|
||||||
<strong><%= tag.name %></strong>
|
<strong><%= tag.name %></strong>
|
||||||
@@ -24,5 +23,4 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
@@ -27,7 +27,10 @@
|
|||||||
<%= side_menu %>
|
<%= side_menu %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="left">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user