61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
<table class="table">
|
|
<thead>
|
|
<tr><th><h3><%= t('feed.channel') %></h3></th></tr>
|
|
<tr>
|
|
<th class="span4"><%= t('RSS') %></th>
|
|
<%if is_manager? %>
|
|
<th class="span4"><%= t('feed.edit') %></th>
|
|
<th class="span4"><%= t('feed.delete') %></th>
|
|
<th class="span4"><%= t('feed.status.status') %></th>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody_locations" class="sort-holder">
|
|
<% @feeds.each do |feed| %>
|
|
<tr class="with_action">
|
|
<td><%= feed.name %></td>
|
|
<%if is_manager? %>
|
|
<td><%= link_to t('feed.edit'), edit_panel_feed_back_end_feed_path(feed) %></td>
|
|
<td><%= link_to t('feed.cancel'), panel_feed_back_end_feed_path(feed), method: :delete, confirm: t(:sure?) %></td>
|
|
<td>
|
|
<%- if feed.accepted? %>
|
|
<%= t('feed.status.accepted') %>
|
|
<% else %>
|
|
<%= t('feed.status.unaccepted') %>
|
|
<% end -%>
|
|
</td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%if is_manager? %>
|
|
<br />
|
|
<%= link_to t('feed.new'), new_panel_feed_back_end_feed_path, :class => "btn btn-primary pull-right", :id => "create_event_btn", :ref => "add-btn" %>
|
|
<% end %>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr><th><h3><%= t('feed.status.permission') %></h3></th></tr>
|
|
<tr>
|
|
<th class="span4"><%= t('URL') %></th>
|
|
<%if is_manager? %>
|
|
<th class="span4"><%= t('feed.permit') %></th>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody_locations" class="sort-holder">
|
|
<% @permission_feeds.each do |feed| %>
|
|
<tr class="with_action">
|
|
<td><%= feed.from_request_link %></td>
|
|
<%if is_manager? %>
|
|
<td><%= link_to t('feed.agree'), agree_panel_feed_back_end_feeds_path(feed), method: :post, class: "btn btn-primary" %></td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
|