Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F904929
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 29, 5:39 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Sun, Aug 31, 5:39 PM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
252330
Attached To
rARCHIVING archiving
View Options
diff --git a/app/views/admin/faqs/_faq.html.erb b/app/views/admin/faqs/_faq.html.erb
index 65ec986..e547cce 100644
--- a/app/views/admin/faqs/_faq.html.erb
+++ b/app/views/admin/faqs/_faq.html.erb
@@ -1,20 +1,19 @@
<tr>
- <td><%= link_to "##{faq.id}", admin_faq_path(faq) %></td>
<td><%= faq.priority %></td>
<td><%= link_to faq.title, admin_faq_path(faq) %></td>
<td><%= faq.pretty_body.html_safe %></td>
<td><%= I18n.l(faq.created_at, format: :short) %></td>
<td><%= I18n.l(faq.updated_at, format: :short) rescue '-' %></td>
<td>
<%= link_to admin_faq_path(faq) do %>
<label class="glyphicon glyphicon-eye-open text-primary" alt="show"></label>
<% end %>
<%= link_to edit_admin_faq_path(faq) do %>
<label class="glyphicon glyphicon-edit text-primary" alt="show"></label>
<% end %>
<%= link_to admin_faq_path(faq), method: :delete,
data: { confirm: 'The FAQ entry is going to be destroyed' } do %>
<label class="glyphicon glyphicon-remove text-danger" alt="show"></label>
<% end %>
</td>
</tr>
diff --git a/app/views/admin/faqs/index.html.erb b/app/views/admin/faqs/index.html.erb
index 121ce09..fbc8f2a 100644
--- a/app/views/admin/faqs/index.html.erb
+++ b/app/views/admin/faqs/index.html.erb
@@ -1,33 +1,32 @@
<div class="row right">
<%= link_to new_admin_faq_path, class: "btn btn-default", role: "button" do %>
<label class="glyphicon glyphicon-plus text-primary"></label>
New FAQ
<% end %>
</div>
<h3>FAQ</h3>
<br />
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
- <th>Id</th>
<th>Priority</th>
<th class="col-xs-2">Title</th>
<th class="col-xs-7">Body</th>
<th>Created at</th>
<th>Updated at</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<%= render partial: 'faq', collection: @faqs %>
</tbody>
</table>
</div>
</div>
</div>
Event Timeline
Log In to Comment