-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
864ebdf
commit 7620fef
Showing
9 changed files
with
257 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{% extends "views/manage-prototype/layout.njk" %} | ||
{% from "govuk/components/button/macro.njk" import govukButton %} | ||
|
||
{% block beforeContent %} | ||
{{ super() }} | ||
<a href="/manage-prototype/plugins" class="govuk-back-link">Back to plugins</a> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<form method="post" action=""> | ||
{% include "views/manage-prototype/plugin-header.njk" %} | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-one-quarter"> | ||
{% if newerLink %} | ||
<p><a href="{{ newerLink }}">Latest version: {{ newerVersion }}</a></p> | ||
{% endif %} | ||
{% if installedLinkAsDifferentLink %} | ||
<p><a href="{{ installedLinkAsDifferentLink }}">Installed version: {{ installedLinkAsDifferentVersion }}</a></p> | ||
{% endif %} | ||
|
||
<div class="govuk-prototype-kit-manage-prototype-plugin-list-plugin-list__item-buttons"> | ||
<div class="govuk-button-group"> | ||
{% if installLink %} | ||
{{ govukButton({ | ||
html: 'Install <span class="govuk-visually-hidden"> ' + plugin.name + '</span>', | ||
attributes: { id: "install-" + packageName, formaction: installLink } | ||
}) }} | ||
{% endif %} | ||
{% if updateLink %} | ||
{{ govukButton({ | ||
html: 'Update <span class="govuk-visually-hidden"> ' + plugin.name + '</span>', | ||
attributes: { id: "update-" + packageName, formaction: updateLink } | ||
}) }} | ||
{% endif %} | ||
{% if uninstallLink %} | ||
{{ govukButton({ | ||
html: 'Uninstall <span class="govuk-visually-hidden"> ' + plugin.name + '</span>', | ||
classes: "govuk-button--secondary", | ||
attributes: { id: "uninstall-" + packageName, formaction: uninstallLink } | ||
}) }} | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
{% if plugin.releaseDateTime or preparedPluginLinks.releaseNotes or preparedPluginLinks.versionHistory %} | ||
<div class="govuk-prototype-kit-manage-prototype-plugin-details-links"> | ||
{% if plugin.releaseDateTime %} | ||
<p class="govuk-body">Released <time title="{{ plugin.releaseDateTime }}" datetime="{{ plugin.releaseDateTime }}">{{ releaseTimeSummary }}</time></p> | ||
{% endif %} | ||
{% if preparedPluginLinks.releaseNotes %} | ||
<p><a href="{{ preparedPluginLinks.releaseNotes }}" class="govuk-link">Release notes</a></p> | ||
{% endif %} | ||
{% if preparedPluginLinks.versionHistory %} | ||
<p><a href="{{ preparedPluginLinks.versionHistory }}" class="govuk-link">Version history</a></p> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
<p class="govuk-body"><a href="https://prototype-kit.service.gov.uk/docs/support">Report</a></p> | ||
{% if debugInfo %} | ||
<code><pre> | ||
{{ debugInfo }} | ||
</pre></code> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="govuk-grid-column-three-quarters"> | ||
<h2 class="govuk-heading-l">About this plugin</h2> | ||
|
||
<p class="govuk-body">{{ description | default('No description has been provided.') }}</p> | ||
|
||
{% if preparedPluginLinks.documentation %} | ||
<p class="govuk-heading-m"><a href="{{ preparedPluginLinks.documentation }}">How to use this plugin</a></p> | ||
{% endif %} | ||
|
||
{% if inThisPlugin.length %} | ||
<h3 class="govuk-heading-m">Included in this plugin</h3> | ||
{% for section in inThisPlugin %} | ||
<h4 class="govuk-heading-s">{{ section.title }}</h4> | ||
<ul class="govuk-list--bullet"> | ||
{% for item in section.items %} | ||
<li class="govuk-body">{{ item }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="govuk-grid-row govuk-!-margin-bottom-5"> | ||
<div class="govuk-grid-column-two-thirds-from-desktop"> | ||
<h1 class="govuk-heading-l govuk-prototype-kit-manage-prototype-plugin-heading">{{ plugin.name }}</h1> | ||
<p class="govuk-body-lead govuk-prototype-kit-manage-prototype-plugin-sub-heading">v{{ plugin.version }}</p> | ||
{% if plugin.scope %} | ||
<p class="govuk-body-lead govuk-prototype-kit-manage-prototype-plugin-sub-heading">By {{ plugin.scope }}</p> | ||
{% endif %} | ||
</div> | ||
</div> |
Oops, something went wrong.