diff options
| author | jpl | 2016-08-01 11:05:33 +0200 |
|---|---|---|
| committer | jpl | 2016-08-01 11:05:33 +0200 |
| commit | f16a41a7b7bde5a5913aad833fbfff3f0abf1504 (patch) | |
| tree | 4fd6376994c959eeeaadf815eb3a8b6220afbf29 | |
| parent | feb27390e03f34d3994e462573e8620ed6d5f1bd (diff) | |
| download | chouette-core-f16a41a7b7bde5a5913aad833fbfff3f0abf1504.tar.bz2 | |
Refs #1295: convert erb to slim (line_referentials)
| -rw-r--r-- | app/views/line_referentials/show.html.erb | 45 | ||||
| -rw-r--r-- | app/views/line_referentials/show.html.slim | 31 |
2 files changed, 31 insertions, 45 deletions
diff --git a/app/views/line_referentials/show.html.erb b/app/views/line_referentials/show.html.erb deleted file mode 100644 index 60cf9d93a..000000000 --- a/app/views/line_referentials/show.html.erb +++ /dev/null @@ -1,45 +0,0 @@ -<!-- FIXME #825 --> -<%= title_tag "Référentiel de lignes #{@line_referential.name}" %> - -<div class="summary"> - -</div> - -<div class="panel panel-default"> - <ul class="list-group" width="75%"> - <li class="list-group-item"> - <span class="badge"><%= @line_referential.group_of_lines.size %></span> - <%= link_to Referential.human_attribute_name("group_of_lines"), line_referential_group_of_lines_path(@line_referential) %> - </li> - <li class="list-group-item"> - <span class="badge"><%= @line_referential.lines.size %></span> - <%= link_to Referential.human_attribute_name("lines"), line_referential_lines_path(@line_referential) %> - </li> - </ul> -</div> - -<% unless @line_referential.line_referential_sync.line_sync_operations.empty? %> - <%= title_tag "Historique des synchronisations" %> - <ul class="list-group" width="75%"> - <% @line_referential.line_referential_sync.line_sync_operations.each do |sync| %> - <li> - <%= sync.created_at %> - <%= sync.status %> - </li> - <% end %> - </ul> -<% end %> - -<%= semantic_form_for @line_referential, :url => line_referential_path do |form| %> - <%= form.inputs do %> - <%= form.input :sync_interval %> - <% end %> - - <%= form.actions do %> - <%= form.action :submit, :as => :button %> - <% end %> -<% end %> - -<% content_for :sidebar do %> -<ul class="actions"> -</ul> -<% end %> diff --git a/app/views/line_referentials/show.html.slim b/app/views/line_referentials/show.html.slim new file mode 100644 index 000000000..9e8d5b314 --- /dev/null +++ b/app/views/line_referentials/show.html.slim @@ -0,0 +1,31 @@ +/ FIXME #825 += title_tag "Référentiel de lignes #{@line_referential.name}" + +.summary + +.panel.panel-default + ul.list-group width="75%" + li.list-group-item + span.badge = @line_referential.group_of_lines.size + = link_to Referential.human_attribute_name("group_of_lines"), line_referential_group_of_lines_path(@line_referential) + + li.list-group-item + span.badge = @line_referential.lines.size + = link_to Referential.human_attribute_name("lines"), line_referential_lines_path(@line_referential) + +- unless @line_referential.line_referential_sync.line_sync_operations.empty? + = title_tag "Historique des synchronisations" + + ul.list-group width="75%" + - @line_referential.line_referential_sync.line_sync_operations.each do |sync| + li = "#{sync.created_at} - #{sync.status}" + += semantic_form_for @line_referential, :url => line_referential_path do |form| + = form.inputs do + = form.input :sync_interval + + = form.actions do + = form.action :submit, as: :button + +- content_for :sidebar do + ul.actions
\ No newline at end of file |
