From: <jh...@us...> - 2010-12-18 06:50:56
|
Revision: 231 http://etch.svn.sourceforge.net/etch/?rev=231&view=rev Author: jheiss Date: 2010-12-18 06:50:50 +0000 (Sat, 18 Dec 2010) Log Message: ----------- Add index and show views for the models that were lacking any view. Added Paths: ----------- trunk/server/app/views/etch_configs/index.html.erb trunk/server/app/views/etch_configs/show.html.erb trunk/server/app/views/facts/index.html.erb trunk/server/app/views/facts/show.html.erb trunk/server/app/views/originals/index.html.erb trunk/server/app/views/originals/show.html.erb Added: trunk/server/app/views/etch_configs/index.html.erb =================================================================== --- trunk/server/app/views/etch_configs/index.html.erb (rev 0) +++ trunk/server/app/views/etch_configs/index.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,28 @@ +<%- @page_title = 'Configs' -%> + +<h1>Configs</h1> + +<div id="results_table"> +<%= will_paginate @etch_configs %> +<table cellspacing="0" class="styled"> + <thead> + <tr> + <th nowrap="nowrap" width="5%"> </th> + <th><%= order @search, :by => :client %></th> + <th><%= order @search, :by => :file %></th> + <th><%= order @search, :by => :updated_at %></th> + </tr> + </thead> + <tbody> + <%- @etch_configs.each do |etch_config| -%> + <tr class="<%= cycle('odd', 'even') -%>"> + <td nowrap="nowrap" width="5%"><%= link_to 'View', etch_config_path(etch_config) %></td> + <td><%= etch_config.client.name %></td> + <td><%= etch_config.file %></td> + <td><%= etch_config.updated_at %></td> + </tr> + <%- end -%> + </tbody> +</table> +</div> <!-- end results_table div --> + Added: trunk/server/app/views/etch_configs/show.html.erb =================================================================== --- trunk/server/app/views/etch_configs/show.html.erb (rev 0) +++ trunk/server/app/views/etch_configs/show.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,24 @@ +<%- @page_title = "Config" %> + +<div class="record_view"> + +<h1>Config</h1> + +<p> + <strong>Client:</strong> <%= link_to(@etch_config.client.name, client_path(@etch_config.client)) %><br /> + <strong>File:</strong> <%= @etch_config.file %><br /> +</p> + +<p> + <strong>Config:</strong><br /> + <pre><%= h @etch_config.config %></pre> +</p> + +<p class="metadata"> + <strong>Created at:</strong> <%= @etch_config.created_at %><br /> + <strong>Updated at:</strong> <%= @etch_config.updated_at %><br /> + <%= link_to 'Delete', etch_config_path(@etch_config), :confirm => 'Are you sure?', :method => :delete %></p> +</p> + +</div> + Added: trunk/server/app/views/facts/index.html.erb =================================================================== --- trunk/server/app/views/facts/index.html.erb (rev 0) +++ trunk/server/app/views/facts/index.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,28 @@ +<%- @page_title = 'Facts' -%> + +<h1>Facts</h1> + +<div id="results_table"> +<%= will_paginate @facts %> +<table cellspacing="0" class="styled"> + <thead> + <tr> + <th nowrap="nowrap" width="5%"> </th> + <th><%= order @search, :by => :client %></th> + <th><%= order @search, :by => :key %></th> + <th><%= order @search, :by => :updated_at %></th> + </tr> + </thead> + <tbody> + <%- @facts.each do |fact| -%> + <tr class="<%= cycle('odd', 'even') -%>"> + <td nowrap="nowrap" width="5%"><%= link_to 'View', fact_path(fact) %></td> + <td><%= fact.client.name %></td> + <td><%= fact.key %></td> + <td><%= fact.updated_at %></td> + </tr> + <%- end -%> + </tbody> +</table> +</div> <!-- end results_table div --> + Added: trunk/server/app/views/facts/show.html.erb =================================================================== --- trunk/server/app/views/facts/show.html.erb (rev 0) +++ trunk/server/app/views/facts/show.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,24 @@ +<%- @page_title = "Fact" %> + +<div class="record_view"> + +<h1>Fact</h1> + +<p> + <strong>Client:</strong> <%= link_to(@fact.client.name, client_path(@fact.client)) %><br /> + <strong>Key:</strong> <%= @fact.key %><br /> +</p> + +<p> + <strong>Value:</strong><br /> + <pre><%= h @fact.value %></pre> +</p> + +<p class="metadata"> + <strong>Created at:</strong> <%= @fact.created_at %><br /> + <strong>Updated at:</strong> <%= @fact.updated_at %><br /> + <%= link_to 'Delete', fact_path(@fact), :confirm => 'Are you sure?', :method => :delete %></p> +</p> + +</div> + Added: trunk/server/app/views/originals/index.html.erb =================================================================== --- trunk/server/app/views/originals/index.html.erb (rev 0) +++ trunk/server/app/views/originals/index.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,28 @@ +<%- @page_title = 'Originals' -%> + +<h1>Originals</h1> + +<div id="results_table"> +<%= will_paginate @originals %> +<table cellspacing="0" class="styled"> + <thead> + <tr> + <th nowrap="nowrap" width="5%"> </th> + <th><%= order @search, :by => :client %></th> + <th><%= order @search, :by => :file %></th> + <th><%= order @search, :by => :updated_at %></th> + </tr> + </thead> + <tbody> + <%- @originals.each do |original| -%> + <tr class="<%= cycle('odd', 'even') -%>"> + <td nowrap="nowrap" width="5%"><%= link_to 'View', original_path(original) %></td> + <td><%= original.client.name %></td> + <td><%= original.file %></td> + <td><%= original.updated_at %></td> + </tr> + <%- end -%> + </tbody> +</table> +</div> <!-- end results_table div --> + Added: trunk/server/app/views/originals/show.html.erb =================================================================== --- trunk/server/app/views/originals/show.html.erb (rev 0) +++ trunk/server/app/views/originals/show.html.erb 2010-12-18 06:50:50 UTC (rev 231) @@ -0,0 +1,20 @@ +<%- @page_title = "Original" %> + +<div class="record_view"> + +<h1>Original</h1> + +<p> + <strong>Client:</strong> <%= link_to(@original.client.name, client_path(@original.client)) %><br /> + <strong>File:</strong> <%= @original.file %><br /> + <strong>Checksum:</strong> <%= @original.sum %><br /> +</p> + +<p class="metadata"> + <strong>Created at:</strong> <%= @original.created_at %><br /> + <strong>Updated at:</strong> <%= @original.updated_at %><br /> + <%= link_to 'Delete', original_path(@original), :confirm => 'Are you sure?', :method => :delete %></p> +</p> + +</div> + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |