diff options
| author | Luc Donnet | 2015-05-07 14:40:37 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2015-05-07 14:40:37 +0200 | 
| commit | 73abd85f6181e33fe0b2fe31a5c46f2fbc44eb8a (patch) | |
| tree | f284e3994937c1e58a68625dc347a0ad7d557945 /app/views/imports/show.html.erb | |
| parent | 46c9cd634a1b2f36df872bd0acbca25884673810 (diff) | |
| download | chouette-core-73abd85f6181e33fe0b2fe31a5c46f2fbc44eb8a.tar.bz2 | |
Fix import
Diffstat (limited to 'app/views/imports/show.html.erb')
| -rw-r--r-- | app/views/imports/show.html.erb | 15 | 
1 files changed, 13 insertions, 2 deletions
diff --git a/app/views/imports/show.html.erb b/app/views/imports/show.html.erb index 796f7981e..90524eedc 100644 --- a/app/views/imports/show.html.erb +++ b/app/views/imports/show.html.erb @@ -1,10 +1,21 @@  <div class="test"> -  <%= title_tag "#{title} #{@import.name} <span class='status status_#{@import.status}'>#{ t('imports.statuses.'+ @import.status) }</span>" %> +  <%= title_tag job_status_title(@import) %>  </div> +<% if !@import.aborted? %>  <div class="import_show"> -  <%= render( :partial => "results_dashboard", :locals => { :referential => @referential} ) %> +  <div class="links"> +    <%= link_to image_tag("icons/file_#{@import.filename_extension}.png") + t("imports.show.imported_file"), imported_file_referential_import_path(@referential, @import.id) if !@import.aborted? %> +    <% if @import.rule_parameter_set %>  +    <%= link_to image_tag("icons/link_page.png") + t("imports.show.rule_parameter_set"), rule_parameter_set_referential_import_path(@referential, @import.id) %> +    <% end %> +    <% if @import.compliance_check %>  +    <%= link_to image_tag("icons/link_page.png") + t("imports.show.compliance_check"), compliance_check_referential_import_path(@referential, @import.id) %> +    <% end %> +  </div> +  <%= render( :partial => "shared/ie_report.html", :locals => { :referential => @referential, :job => @import} ) %>  </div> +<% end %>  <% content_for :sidebar do %>    <ul class="actions">  | 
