|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; |
|
|
|
|
|
|
|
|
|
%= include 'dashboard/_blog_nav', page => 'posts' |
|
|
|
|
%= include 'dashboard/_blog_nav', page => 'history' |
|
|
|
|
|
|
|
|
|
% if ( my $confirmation = flash 'confirmation' ) { |
|
|
|
|
<div style="margin-top: 2em" class="alert alert-success" role="alert"> |
|
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
<tr> |
|
|
|
|
<th class="text-nowrap">When?</th> |
|
|
|
|
<th class="text-nowrap">What?</th> |
|
|
|
|
<th class="text-nowrap">Restore?</th> |
|
|
|
|
<th class="text-nowrap">Action</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
@ -41,9 +41,9 @@ |
|
|
|
|
<td><%= $change->{dateref} %></a></td> |
|
|
|
|
<td><%= $change->{message} %></a></td> |
|
|
|
|
<td> |
|
|
|
|
<form style="margin-top: 1.5em" method="POST" action="<%= $c->url_for( 'do_dashboard_blog_history' ) %>"> |
|
|
|
|
<input type="hidden" name="commit_id" value="<%= $change->{commit} %>"> |
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary float-end">Restore</button> |
|
|
|
|
<form style="margin-top: 1.5em; display: inline;" method="POST" action="<%= $c->url_for( 'do_dashboard_blog_history' ) %>"> |
|
|
|
|
<input type="hidden" name="commit_hash" value="<%= $change->{commit} %>"> |
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary">Undo Change</button> |
|
|
|
|
</form> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|