parent
2319deea49
commit
372e493bdd
4 changed files with 71 additions and 1 deletions
@ -0,0 +1,27 @@ |
||||
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; |
||||
|
||||
<nav aria-label="breadcrumb" class="mt-3 mb-3"> |
||||
<ol class="breadcrumb"> |
||||
<li class="breadcrumb-item"><a href="<%= $c->url_for( 'show_dashboard' ) %>">Dashboard</a></li> |
||||
<li class="breadcrumb-item active" aria-current="page"><%= $blog->domain->name %></li> |
||||
</ol> |
||||
</nav> |
||||
|
||||
% if ( $blog ) { |
||||
<h3 class="h3 mt-5 mb-3">My Websites</h3> |
||||
<table style="border: 1px solid #ccc" class="table mb-5"> |
||||
<tbody> |
||||
<tr> |
||||
<th class="text-nowrap">Domain</th> |
||||
<th class="text-nowrap">Status Link</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
<tr> |
||||
<td><a href="https://<%= $blog->domain->name %>"><%= $blog->domain->name %></a></td> |
||||
<td><a href="<%= $c->url_for( 'show_dashboard_blog', { id => $blog->id } ) %>">Manage Blog</a></td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
% } |
||||
|
||||
@ -1,5 +1,31 @@ |
||||
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; |
||||
|
||||
<nav aria-label="breadcrumb" class="mt-3 mb-3"> |
||||
<ol class="breadcrumb"> |
||||
<li class="breadcrumb-item active" aria-current="page"><a href="<%= $c->url_for( 'show_dashboard' ) %>">Dashboard</a></li> |
||||
</ol> |
||||
</nav> |
||||
|
||||
<h2 class="mt-5 display-6 mb-4">This is totes the dashboard</h2> |
||||
|
||||
% if ( $person->blogs ) { |
||||
<h3 class="h3 mt-5 mb-3">My Websites</h3> |
||||
<table style="border: 1px solid #ccc" class="table mb-5"> |
||||
<tbody> |
||||
<tr> |
||||
<th class="text-nowrap">Domain</th> |
||||
<th class="text-nowrap">Status Link</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
% for my $blog ( $person->blogs ) { |
||||
<tr> |
||||
<td><a target="_blank" href="https://<%= $blog->domain->name %>"><%= $blog->domain->name %></a></td> |
||||
<td><a href="<%= $c->url_for( 'show_dashboard_blog', { id => $blog->id } ) %>">Manage Blog</a></td> |
||||
</tr> |
||||
% } |
||||
</tbody> |
||||
</table> |
||||
% } |
||||
|
||||
<a href="<%= $c->url_for( 'show_blog_create' ) %>">Create a new blog</a> |
||||
|
||||
Loading…
Reference in new issue