|
|
|
|
@ -41,7 +41,6 @@ |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th class="text-nowrap">Path</th> |
|
|
|
|
<th class="text-nowrap">Type</th> |
|
|
|
|
<th class="text-nowrap">Edit</th> |
|
|
|
|
<th class="text-nowrap">Delete</th> |
|
|
|
|
</tr> |
|
|
|
|
@ -49,13 +48,12 @@ |
|
|
|
|
<tbody> |
|
|
|
|
% for my $page ( @{$blog_pages} ) { |
|
|
|
|
<tr> |
|
|
|
|
<td><a href="<%= $c->url_for( 'show_dashboard_blog', { id => $blog->id } ) %>"><%= $page->filename %></a></td> |
|
|
|
|
<td><a href="<%= $c->url_for( 'show_dashboard_blog', { id => $blog->id } ) %>"><%= $page->headers->{layout} %></a></td> |
|
|
|
|
<td><a href="<%= $c->url_for( 'show_dashboard_blog_page_edit', { id => $blog->id } )->query( file => $page->rel_path ) %>">Edit Post</a></td> |
|
|
|
|
<td><%= $page->filename %></td> |
|
|
|
|
<td><a class="btn btn-sm btn-primary" href="<%= $c->url_for( 'show_dashboard_blog_page_edit', { id => $blog->id } )->query( file => $page->rel_path ) %>">Edit Page</a></td> |
|
|
|
|
<td> |
|
|
|
|
<form style="margin-top: 1.5em; display: inline;" method="POST" action="<%= $c->url_for( 'do_dashboard_blog_page_remove' ) %>"> |
|
|
|
|
<input type="hidden" name="file" value="<%= $page->rel_path %>"> |
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary">Delete Page</button> |
|
|
|
|
<button type="submit" class="btn btn-sm btn-danger">Delete Page</button> |
|
|
|
|
</form> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|