From 53b8734add5e99bb2d6f3cf1b3e2a5b1f3664ef0 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 12 Aug 2014 11:33:34 -0400 Subject: [PATCH] Delete obsolete, undesirable HTML page templates. --- .../api_client_authorizations/index.html.erb | 36 ---------- .../api/app/views/collections/index.html.erb | 47 ------------- services/api/app/views/nodes/index.html.erb | 66 ------------------- .../views/pipeline_instances/index.html.erb | 63 ------------------ 4 files changed, 212 deletions(-) delete mode 100644 services/api/app/views/api_client_authorizations/index.html.erb delete mode 100644 services/api/app/views/collections/index.html.erb delete mode 100644 services/api/app/views/nodes/index.html.erb delete mode 100644 services/api/app/views/pipeline_instances/index.html.erb diff --git a/services/api/app/views/api_client_authorizations/index.html.erb b/services/api/app/views/api_client_authorizations/index.html.erb deleted file mode 100644 index f80ecef0d9..0000000000 --- a/services/api/app/views/api_client_authorizations/index.html.erb +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - <% @objects.each do |o| %> - - - - - - <% end %> - -
- API client - - Token - - Created at - - Used at - - Expires -
- <%= o.api_client.name || o.api_client.url_prefix || o.api_client.uuid %> - - <%= o.api_token %> - - <%= o.created_at %> - - <%= o.last_used_at %> - / - <%= o.last_used_by_ip_address %> - - <%= o.expires_at %> -
diff --git a/services/api/app/views/collections/index.html.erb b/services/api/app/views/collections/index.html.erb deleted file mode 100644 index a73c74babe..0000000000 --- a/services/api/app/views/collections/index.html.erb +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - <% @objects.each do |o| %> - - - - - - <% if %> - - - - - <% end %> - <% end %> -
- redundancy - - uuid - - name - - locator - - last updated -
- <%= o.redundancy_status %> (<%= o.redundancy %>) - - <%= o.uuid %> - - <%= o.name %> - - <%= o.locator %> - - <%= distance_of_time_in_words(o.updated_at, Time.now, true) + ' ago' if o.updated_at %> -
- - - - -
- (file list not available) -
-
diff --git a/services/api/app/views/nodes/index.html.erb b/services/api/app/views/nodes/index.html.erb deleted file mode 100644 index bb346e9676..0000000000 --- a/services/api/app/views/nodes/index.html.erb +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - <% @objects.each do |o| %> - - - - - - <% if %> - > - - - - <% end %> - <% end %> -
- status - - sinfo - - uuid - - hostname - - domain - - ip address - - created - - startup delay - - last ping - - instance_id -
- <%= o.status %> - - <%= @slurm_state[o.hostname] %> - - <%= o.uuid %> - - <%= o.hostname %> - - <%= o.domain %> - - <%= o.ip_address %> - - <%= o.created_at %> - - <%= distance_of_time_in_words(o.first_ping_at, o.created_at, true) if o.first_ping_at %> - - <%= distance_of_time_in_words(o.last_ping_at, Time.now, true) + ' ago' if o.last_ping_at %> - - <%= o.info[:ec2_instance_id] %> -
-
- <% o.info.each do |k,v| %> -
<%= k %>
-
<%= v %>
- <% end %> -
-
diff --git a/services/api/app/views/pipeline_instances/index.html.erb b/services/api/app/views/pipeline_instances/index.html.erb deleted file mode 100644 index cfadd26cdd..0000000000 --- a/services/api/app/views/pipeline_instances/index.html.erb +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - <% @objects.each do |o| %> - - <% status = (o.state == 'Complete') ? 'success' : ((o.state == 'Failed') ? 'failure' : 'pending') %> - - - - - - <% if %> - - - - - <% end %> - <% end %> -
- success - - active - - % complete - - uuid - - pipeline template - - name - - last updated -
- <%= status %> - - <%= (o.state == 'RunningOnServer') ? 'yes' : '-' %> - - <%= (o.progress_ratio * 1000).floor / 10 %> - - <%= o.uuid %> - - <%= o.pipeline_template_uuid %> - - <%= o.name %> - - <%= distance_of_time_in_words(o.updated_at, Time.now, true) + ' ago' if o.updated_at %> -
- - <% o.progress_table.each do |r| %> - - <% r[2] = "#{(r[2]*100).floor}%" %> - <% r[4] = r[4][0..5] rescue '' %> - <% r.each do |c| %> - - <% end %> - - <% end %> -
- <%= (c.is_a? Time) ? distance_of_time_in_words(c, Time.now, true) + ' ago' : c %> -
-
-- 2.30.2