Skip to content

Commit

Permalink
DMS-86 Small UI tweaks (#28)
Browse files Browse the repository at this point in the history
* DMS-86 Update hero statement

* DMS-86 Add fjelltopp logo
  • Loading branch information
jonathansberry authored Nov 4, 2022
1 parent 9f68770 commit 21c660d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ckanext/dms/assets/css/dms.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ p.small {
width: 100%;
}


.category-box .group-text .title{
font-weight: 700;
font-size: 16px;
Expand Down Expand Up @@ -533,6 +532,7 @@ a.tag:hover {

.footer-links img {
width: 100%;
margin-bottom: 30px;
}

.main, .hero {
Expand Down
3 changes: 1 addition & 2 deletions ckanext/dms/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def dataset_facets(self, facet_dict, package_type):
def before_create(self, context, resource):
if _data_dict_is_resource(resource):
_giftless_upload(context, resource)

_update_resource_last_modified_date(resource)
return resource

Expand All @@ -66,8 +67,6 @@ def before_update(self, context, current, resource):
return resource




def _giftless_upload(context, resource, current=None):
attached_file = resource.pop('upload', None)
if attached_file:
Expand Down
Binary file added ckanext/dms/public/images/fjelltopp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions ckanext/dms/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
{% endblock %}
{% endblock %}
</div>
<div class="col-xs-12 col-sm-3 col-lg-2 footer-links">
<img src="/images/unaids.png"/>
<div class="col-xs-6 col-sm-3 col-lg-2 footer-links">
<a href="https://unaids.org" target="_blank"><img src="/images/unaids.png"/></a>
<a href="https://fjelltopp.org" target="_blank"><img src="/images/fjelltopp.png" /></a>
</div>
{% endblock %}

Expand Down
10 changes: 5 additions & 5 deletions ckanext/dms/templates/home/snippets/promoted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{% set stats = h.get_site_statistics() %}

<div class="promoted" >
<p class="subtitle">HIV, AIDS & Viral Hepititis</p>
<h1 class="headline">Document Management System</h1>
<p>A platform for the MoH to share documentation and datasets with external partners.</p>
<h2>Search {{ h.SI_number_span(stats.dataset_count) }} datasets:</h2>
<p class="subtitle">{{_('Department of HIV, AIDS & Viral Hepititis (DHA)')}}</p>
<h1 class="headline">{{_('Document Management System')}}</h1>
<p>{{_('A platform for the DHA to share documentation and datasets with external partners.')}}</p>
<h2>{{ _('Search {0} datasets:').format(h.SI_number_span(stats.dataset_count)) }}</h2>
<div class="row">
<div class="col-xs-12 col-sm-10 col-md-7 col-lg-6">
{% snippet 'snippets/search_input.html' %}
</div>
</div>
<p>Or <a class="small" href="{{ h.url_for('/group/') }}">find data by category</a></p>
<p>{{_('Or')}} <a class="small" href="{{ h.url_for('/group/') }}">{{_('find data by category')}}</a></p>
</div>

0 comments on commit 21c660d

Please sign in to comment.