Skip to content

Commit

Permalink
Show language selector when user is loged out
Browse files Browse the repository at this point in the history
  • Loading branch information
jovana committed Dec 22, 2023
1 parent a5d53f1 commit 7888b16
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ckanext/kepa/assets/css/kepa.css

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

2 changes: 1 addition & 1 deletion ckanext/kepa/assets/css/kepa.css.map

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

8 changes: 5 additions & 3 deletions ckanext/kepa/assets/scss/kepa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
width: 80%;
}

.hero .container{
.hero .container {
@include center-flex;
}

Expand Down Expand Up @@ -259,6 +259,8 @@
width: 60px;
}

.account .list-unstyled {
@include center-flex;
.account-masthead .container {
display: flex;
justify-content: end;
align-items: center;
}
9 changes: 5 additions & 4 deletions ckanext/kepa/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{% block header_wrapper %} {% block header_account %}
<div class="account-masthead">
<div class="container">
<div class="language">
{% snippet "snippets/language_selector.html" %}
</div>
{% block header_account_container_content %} {% if c.userobj %}
<div class="account avatar authed" data-module="me" data-me="{{ c.userobj.id }}">
<ul class="list-unstyled">
<div class="language">
{% snippet "snippets/language_selector.html" %}
</div>
{% block header_account_logged %} {% if c.userobj.sysadmin %}
<li>
<a href="{{ h.url_for('admin.index') }}" title="{{ _('Sysadmin settings') }}">
Expand Down Expand Up @@ -105,7 +105,8 @@ <h2>{{ g.site_description }}</h2>
{% set group_type = h.default_group_type('group') %}

{{ h.build_nav_main(
(dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or _('datasets').upper(),
(dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or
_('datasets').upper(),
["dataset", "resource"]),
(org_type ~ '.index',
h.humanize_entity_type('organization', org_type, 'main nav') or _('organizations').upper(), ['organization']),
Expand Down

0 comments on commit 7888b16

Please sign in to comment.