Skip to content

Commit

Permalink
Add styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed Jan 15, 2024
1 parent e527b11 commit 181ced7
Show file tree
Hide file tree
Showing 14 changed files with 183 additions and 7 deletions.
Binary file removed core/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file removed core/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file removed core/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file removed core/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file removed home/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file removed home/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
126 changes: 126 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 57 additions & 7 deletions templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,64 @@ <h2 class="govuk-heading-l govuk-!-display-inline-block">236 Results</h2>
<option value="comments">Most comments</option>
</select>
</div>
</div>

<div class="govuk-grid-column-one-third">
{% for result in results %}
<code>
{{result}}
</code>
{% endfor %}
{% for result in results %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h3 class="govuk-heading-m govuk-!-margin-bottom-2">
<a href="/dataset">{{result.title}}</a>
</h3>

<p class="govuk-body-m">{{result.summary}}</p>

<dl class="govuk-summary-list">

<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Registered by</dt>
<dd class="govuk-summary-list__value">
{{result.registered_by}}
</dd>
</div>

<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Database Name</dt>
<dd class="govuk-summary-list__value">
{{result.database_name}}
</dd>
</div>


<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">First created</dt>
<dd class="govuk-summary-list__value">
{{result.first_created}}
</dd>
</div>

<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Refresh period</dt>
<dd class="govuk-summary-list__value">
{{result.refresh_period}}
</dd>
</div>

<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Retention period</dt>
<dd class="govuk-summary-list__value">
{{result.retention_period}}
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Tags</dt>
<dd class="govuk-summary-list__value">
{{ result.tags |join:", " }}
</dd>
</div>
</div>
</div>
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">

{%endfor%}
</div>
</div>
</main>
Expand Down

0 comments on commit 181ced7

Please sign in to comment.