You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.4 KiB
73 lines
2.4 KiB
% layout 'standard', title => 'Dashboard', sb_active => 'dashboard';
|
|
|
|
%= include 'dashboard/_blog_nav', page => 'info'
|
|
|
|
% if ( my $confirmation = flash 'confirmation' ) {
|
|
<div style="margin-top: 2em" class="alert alert-success" role="alert">
|
|
<%== $confirmation %>
|
|
</div>
|
|
% }
|
|
|
|
% if ( $c->stash->{success} ) {
|
|
<div style="margin-top: 2em" class="alert alert-success" role="alert">
|
|
<%= $c->stash->{success_message} %>
|
|
</div>
|
|
% }
|
|
|
|
% if ( $c->stash->{errors} ) {
|
|
<div style="margin-top: 2em" class="alert alert-danger" role="alert">
|
|
There were errors with your request that could not be resolved:
|
|
<ul>
|
|
% for my $error ( @{$c->stash->{errors}} ) {
|
|
<li><%= $error %></li>
|
|
% }
|
|
</ul>
|
|
</div>
|
|
% }
|
|
|
|
<table style="border: 1px solid #ccc" class="table table-striped mb-5 mt-3">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-nowrap">Setting</th>
|
|
<th class="text-nowrap">Value</th>
|
|
<th class="text-nowrap">Meaning</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th>Domain</th>
|
|
<td><a href="https://<%= $blog->domain->name %>"><%= $blog->domain->name %></a></td>
|
|
<td>This is the domain name for your website. Users from the Internet can visit this domain to see your website.</td>
|
|
</tr>
|
|
|
|
%# <tr>
|
|
%# <th>Repository</th>
|
|
%# <td><%= $blog->repo->url %></td>
|
|
%# <td>This is the URL we use to fetch your git repository when the website is built.</td>
|
|
%# </tr>
|
|
|
|
<tr>
|
|
<th>Last Build</th>
|
|
% if ( $blog->minutes_since_last_build ) {
|
|
<td><%= $blog->minutes_since_last_build %> minutes ago</td>
|
|
% } else {
|
|
<td>Never Built</td>
|
|
% }
|
|
<td>How long ago the last build was.</td>
|
|
</tr>
|
|
%# Build & Site Restrictions %>
|
|
<tr>
|
|
<th>Actions</th>
|
|
<td colspan=2>
|
|
<div class="btn-group">
|
|
%# <form method="post" action="<%= $c->url_for( 'do_dashboard_website_rebuild', { site_id => $blog->id } ) %>">
|
|
%# <div class="input-group">
|
|
%# <button class="btn btn-sm btn-primary" type="submit">Rebuild & Deploy</button>
|
|
%# </div>
|
|
%# </form>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|