[116893] branches/gsoc11-statistics/stats-server/app/views/submissions

cal at macports.org cal at macports.org
Sun Feb 9 08:58:32 PST 2014


Revision: 116893
          https://trac.macports.org/changeset/116893
Author:   cal at macports.org
Date:     2014-02-09 08:58:32 -0800 (Sun, 09 Feb 2014)
Log Message:
-----------
macports stats: submission views: remove unneeded, fix text on the remaining view

Modified Paths:
--------------
    branches/gsoc11-statistics/stats-server/app/views/submissions/index.html.erb

Removed Paths:
-------------
    branches/gsoc11-statistics/stats-server/app/views/submissions/_form.html.erb
    branches/gsoc11-statistics/stats-server/app/views/submissions/edit.html.erb
    branches/gsoc11-statistics/stats-server/app/views/submissions/new.html.erb
    branches/gsoc11-statistics/stats-server/app/views/submissions/show.html.erb

Deleted: branches/gsoc11-statistics/stats-server/app/views/submissions/_form.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/submissions/_form.html.erb	2014-02-09 16:57:56 UTC (rev 116892)
+++ branches/gsoc11-statistics/stats-server/app/views/submissions/_form.html.erb	2014-02-09 16:58:32 UTC (rev 116893)
@@ -1,21 +0,0 @@
-<%= form_for(@submission) do |f| %>
-  <% if @submission.errors.any? %>
-    <div id="error_explanation">
-      <h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>
-
-      <ul>
-      <% @submission.errors.full_messages.each do |msg| %>
-        <li><%= msg %></li>
-      <% end %>
-      </ul>
-    </div>
-  <% end %>
-
-  <div class="field">
-    <%= f.label :data %><br />
-    <%= f.text_field :data %>
-  </div>
-  <div class="actions">
-    <%= f.submit %>
-  </div>
-<% end %>

Deleted: branches/gsoc11-statistics/stats-server/app/views/submissions/edit.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/submissions/edit.html.erb	2014-02-09 16:57:56 UTC (rev 116892)
+++ branches/gsoc11-statistics/stats-server/app/views/submissions/edit.html.erb	2014-02-09 16:58:32 UTC (rev 116893)
@@ -1,6 +0,0 @@
-<h1>Editing submission</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @submission %> |
-<%= link_to 'Back', submissions_path %>

Modified: branches/gsoc11-statistics/stats-server/app/views/submissions/index.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/submissions/index.html.erb	2014-02-09 16:57:56 UTC (rev 116892)
+++ branches/gsoc11-statistics/stats-server/app/views/submissions/index.html.erb	2014-02-09 16:58:32 UTC (rev 116893)
@@ -1,23 +1,3 @@
-<h1>Listing submissions</h1>
+<h2>Submission Page</h2>
 
-<table>
-  <tr>
-    <th>Data</th>
-    <th></th>
-    <th></th>
-    <th></th>
-  </tr>
-
-<% @submissions.each do |submission| %>
-  <tr>
-    <td><%= submission.data %></td>
-    <td><%= link_to 'Show', submission %></td>
-    <td><%= link_to 'Edit', edit_submission_path(submission) %></td>
-    <td><%= link_to 'Destroy', submission, :confirm => 'Are you sure?', :method => :delete %></td>
-  </tr>
-<% end %>
-</table>
-
-<br />
-
-<%= link_to 'New Submission', new_submission_path %>
+<p>Nothing to see here.</p>

Deleted: branches/gsoc11-statistics/stats-server/app/views/submissions/new.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/submissions/new.html.erb	2014-02-09 16:57:56 UTC (rev 116892)
+++ branches/gsoc11-statistics/stats-server/app/views/submissions/new.html.erb	2014-02-09 16:58:32 UTC (rev 116893)
@@ -1,5 +0,0 @@
-<h1>New submission</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', submissions_path %>

Deleted: branches/gsoc11-statistics/stats-server/app/views/submissions/show.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/submissions/show.html.erb	2014-02-09 16:57:56 UTC (rev 116892)
+++ branches/gsoc11-statistics/stats-server/app/views/submissions/show.html.erb	2014-02-09 16:58:32 UTC (rev 116893)
@@ -1,20 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<%= 
- json = ActiveSupport::JSON.decode(@submission.data) 
- os = json['os']
- "" 
-%>
-
-<p>UUID: <%= json['id'] %></p>
-
-<p> macports_version: <%= os['macports_version'] %> </p>
-<p> osx_version:      <%= os['osx_version'] %></p>
-<p> os_arch:          <%= os['os_arch'] %> </p>
-<p> os_platform:      <%= os['os_platform'] %></p>
-<p> build_arch:       <%= os['build_arch'] %></p>
-<p> gcc_version:      <%= os['gcc_version'] %></p>
-<p> xcode_version:    <%= os['xcode_version'] %></p>
-
-<%= link_to 'Edit', edit_submission_path(@submission) %> |
-<%= link_to 'Back', submissions_path %>
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140209/8fa3e691/attachment-0001.html>


More information about the macports-changes mailing list