Skip to content
Snippets Groups Projects
Commit 1809a516 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

plus léger

parent 339ec120
No related branches found
No related tags found
No related merge requests found
<% if about.available_languages.many? %>
<br>en <%= t(about.language.iso_code, scope: :languages) %>
<%
route_args = about.is_direct_object? ? [:admin, about.becomes(about.class.base_class)]
: [:show_in_language, :admin, about.becomes(about.class.base_class)]
%>
<%
links = about.available_languages.map { |language|
next if language.id == about.language_id
link_to t(language.iso_code, scope: :languages).downcase,
[*route_args, lang: language.iso_code]
}.compact
%>
<br>(basculer en <%= links.to_sentence.html_safe %>)
<% end %>
\ No newline at end of file
......@@ -17,7 +17,6 @@
<div class="row">
<div class="col-lg-4">
<%= render 'admin/communication/websites/pages/show/metadata' %>
<%= render 'admin/application/i18n/widget', about: @page, small: true %>
</div>
<div class="col-lg-8">
<%= render 'admin/application/summary/show', about: @page, small: true %>
......
......@@ -12,6 +12,8 @@
<%= @page.published ? 'Publiée' : 'Brouillon' %>
<%= render 'admin/application/i18n/inline', about: @page %>
<% if @page.parent %>
<br>
Dans
......@@ -40,3 +42,4 @@
Pleine largeur
<% end %>
<% end %>
......@@ -17,7 +17,6 @@
<div class="row">
<div class="col-lg-4">
<%= render 'admin/communication/websites/posts/show/metadata' %>
<%= render 'admin/application/i18n/widget', about: @post, small: true %>
</div>
<div class="col-lg-8">
<%= render 'admin/application/summary/show', about: @post, small: true %>
......
......@@ -4,6 +4,7 @@
%>
<div class="mb-4">
<%= osuny_label t('metadata') %><br>
<% if @post.published %>
Publié le <%= l @post.published_at.to_date %>
<% if @post.pinned %>
......@@ -12,10 +13,14 @@
<% else %>
Brouillon
<% end %>
<% if @post.author %>
<br>par <%= @post.author %>
<% end %>
<% if @post.categories.any? %>
<br>dans <%= @post.categories.collect(&:to_s).join(', ') %>
<% end %>
<%= render 'admin/application/i18n/inline', about: @post %>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment