socialforge/app/views/shares/index.html.erb

35 lines
1.2 KiB
Plaintext
Raw Normal View History

<h1>Listing shares</h1>
<table>
<tr>
2013-08-03 20:09:04 +08:00
<th>Created On</th>
<th>Url</th>
2013-10-21 08:57:55 +08:00
<th>Project_Name</th>
<th>Share type</th>
2013-10-21 08:57:55 +08:00
<th>Edit</th>
<th>project_id</th>
<th>user_id</th>
</tr>
<% @shares.each do |share| %>
<tr>
2013-10-21 08:57:55 +08:00
<th><%= share.created_on %></th>
<th><%= share.url %></th>
<th><%= share.title %></th>
<th><%= share.share_type %></th>
<th><%= link_to 'Show', share %>
<%= link_to 'Edit', edit_share_path(share) %>
<%= link_to 'Destroy', share, method: :delete, data: { confirm: 'Are you sure?' } %></th>
<th><%= share.project_id %></th>
<th><%= share.user_id%></th>
</tr>
<% end %>
</table>
2013-08-03 20:09:04 +08:00
<a href=javascript:window.open('http://localhost:3000/shares/new?from=3&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><img src="genghuancheng" alt="QQshuqian" border="0" height="16" width="16"></a>
<br />
<%= link_to 'New Share', new_share_path %>
2013-08-03 20:09:04 +08:00
<a href=javascript:window.open('http://localhost:3000/shares/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><img src="genghuancheng" alt="QQshuqian" border="0" height="16" width="16"></a>