This commit is contained in:
Toks
2013-05-25 19:49:19 -04:00
parent 7c65598ff0
commit 77dfd91702
6 changed files with 9 additions and 10 deletions

View File

@@ -38,7 +38,7 @@
</td>
<% if CurrentUser.is_member? %>
<td>
<%= link_to "Revert", revert_artist_path(artist_version.artist_id, :version_id => artist_version.id), :method => :put, :confirm => "Are you sure you want to revert this artist?" %>
<%= link_to "Revert to", revert_artist_path(artist_version.artist_id, :version_id => artist_version.id), :method => :put, :confirm => "Are you sure you want to revert to this version?" %>
</td>
<% end %>
</tr>

View File

@@ -15,7 +15,7 @@
<th width="10%">Edited By</th>
<th width="10%">Date</th>
<% if CurrentUser.is_member? %>
<th width="5%"></th>
<th width="7%"></th>
<% end %>
</tr>
</thead>
@@ -35,7 +35,7 @@
<td><%= compact_time note_version.updated_at %></td>
<% if CurrentUser.is_member? %>
<td>
<%= link_to "Revert", revert_note_path(note_version.note_id, :version_id => note_version.id), :remote => true, :method => :put, :confirm => "Do you really want to revert to this version?" %>
<%= link_to "Revert to", revert_note_path(note_version.note_id, :version_id => note_version.id), :remote => true, :method => :put, :confirm => "Are you sure you want to revert to this version?" %>
</td>
<% end %>
</tr>

View File

@@ -33,7 +33,7 @@
<td><%= compact_time pool_version.updated_at %></td>
<% if CurrentUser.is_member? %>
<td>
<%= link_to "Revert", revert_pool_path(pool_version.pool_id, :version_id => pool_version.id), :method => :put, :remote => true %>
<%= link_to "Revert to", revert_pool_path(pool_version.pool_id, :version_id => pool_version.id), :method => :put, :remote => true %>
</td>
<% end %>
</tr>

View File

@@ -12,7 +12,7 @@
<% end %>
<th>Tags</th>
<% if CurrentUser.is_member? %>
<th width="5%"></th>
<th width="7%"></th>
<% end %>
</tr>
</thead>
@@ -36,7 +36,7 @@
<td><%= post_version_diff(post_version) %></td>
<% if CurrentUser.is_member? %>
<td>
<%= link_to "Revert", revert_post_path(post_version.post_id, :version_id => post_version.id), :method => :put, :remote => true %>
<%= link_to "Revert to", revert_post_path(post_version.post_id, :version_id => post_version.id), :method => :put, :remote => true %>
</td>
<% end %>
</tr>

View File

@@ -8,10 +8,6 @@
<div id="wiki-page-body" class="dtext prose">
<%= format_text(@wiki_page_version.body) %>
</div>
<% if CurrentUser.is_member? %>
<p><%= link_to "Revert to this version", revert_wiki_page_path(@wiki_page_version.wiki_page_id, :version_id => @wiki_page_version.id), :method => :put %></p>
<% end %>
</section>
</div>
</div>

View File

@@ -26,6 +26,9 @@
<% if @wiki_page_version %>
<li>|</li>
<li><%= link_to "Newest", wiki_page_path(@wiki_page_version.wiki_page_id) %></li>
<% if CurrentUser.is_member? %>
<li><%= link_to "Revert to", revert_wiki_page_path(@wiki_page_version.wiki_page_id, :version_id => @wiki_page_version.id), :method => :put, :confirm => "Are you sure you want to revert to this version?" %></li>
<% end %>
<% end %>
</menu>
<% end %>