2013-08-01 20:26:19 +08:00
|
|
|
<h1>Listing shares</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
2013-08-03 20:09:04 +08:00
|
|
|
<th>Created On</th>
|
2013-08-01 20:26:19 +08:00
|
|
|
<th>Url</th>
|
2013-10-21 08:57:55 +08:00
|
|
|
<th>Project_Name</th>
|
2013-08-01 20:26:19 +08:00
|
|
|
<th>Share type</th>
|
2013-10-21 08:57:55 +08:00
|
|
|
<th>Edit</th>
|
|
|
|
<th>project_id</th>
|
|
|
|
<th>user_id</th>
|
2013-08-01 20:26:19 +08:00
|
|
|
</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>
|
2013-08-01 20:26:19 +08:00
|
|
|
</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>
|
|
|
|
|
2013-08-01 20:26:19 +08:00
|
|
|
<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>
|