Commit 061cb6cb458a4f533b907698c869192e13220f42
1 parent
3ce2f4ff
Exists in
staging
and in
4 other branches
fixed display last_harvest
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
plugins/virtuoso/views/virtuoso_plugin_admin/_server_list_item.html.erb
1 | <div> | 1 | <div> |
2 | - <% value = server_list_item[:dspace_uri] if server_list_item %> | 2 | + <% |
3 | + | ||
4 | + value = server_list_item[:dspace_uri] if server_list_item %> | ||
3 | <%= text_field_tag 'settings[dspace_servers][][dspace_uri]', value, { :class => 'link-name', :maxlength => 60, :size=> 58 } %> | 5 | <%= text_field_tag 'settings[dspace_servers][][dspace_uri]', value, { :class => 'link-name', :maxlength => 60, :size=> 58 } %> |
4 | <%= button_without_text(:delete, _('Delete'), "#" , :class=>"delete-server-list-row") %> | 6 | <%= button_without_text(:delete, _('Delete'), "#" , :class=>"delete-server-list-row") %> |
5 | - <% last_execution = server_list_item[:last_harvest] if server_list_item | ||
6 | - if last_execution %> | 7 | + |
8 | + <% | ||
9 | + last_execution = server_list_item["last_harvest"] if server_list_item | ||
10 | + if last_execution | ||
11 | + %> | ||
7 | <div class="date" style="display: inline-block;"> | 12 | <div class="date" style="display: inline-block;"> |
8 | <span class="label"><strong><%= _('Last execution:') %></strong></span> | 13 | <span class="label"><strong><%= _('Last execution:') %></strong></span> |
9 | <span class="value"><%= time_ago_as_sentence last_execution %></span> | 14 | <span class="value"><%= time_ago_as_sentence last_execution %></span> |