Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('community') }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{%- endblock javascript %}

{%- block body %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('author_list') }}
<input id="lang-code" type="hidden" value="{{lang_code}}" />
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{%- endblock javascript %}

{%- block body %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('author_list') }}
<input id="lang-code" type="hidden" value="{{lang_code}}" />
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{%- endblock javascript %}

{%- block body %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_authors/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('prefix_list') }}
<input id="lang-code" type="hidden" value="{{lang_code}}" />
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top',community_id) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('edit_tree') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('item') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top', community_id) }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow', community_id) }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('item') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('rank') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('item') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('item_type') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{%- extends config.WEKO_PLUGINS_BASE_TEMPLATE %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector(plugin.identifier) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top',community_id) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top',community_id) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top',community_id) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('item_management') }}
{%- endblock page_body_tabs%}

Expand All @@ -55,7 +55,7 @@
<div role="navigation">
<ul class="nav nav-tabs">
{%- block item_management_tabs %}
{% from "weko_theme/macros/item_management_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/item_management_tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('custom_sort') }}
{%- endblock item_management_tabs%}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{%- block body_center %}
<ul class="nav nav-tabs">
{%- block page_body_tabs %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/edit_tabs_selector.html" import tabs_selector with context %}
{%- endblock page_body_tabs%}
</ul>
<div class="row" style="height: 100%">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('top',community_id) }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@

{% macro tabs_selector(tab_value='top',community_id='') %}
{%- if community_id %}

<li role="presentation" {% if tab_value=='top' %}class="active"{% endif %}><a href="/?community={{community_id}}">{{ _('Top') }}</a></li>
{%- if current_user.is_authenticated %}
<li role="presentation" {% if tab_value=='flow' %}class="active"{% endif %}><a href="{{url_for('weko_workflow.index',community=community_id)}}">{{ _('WorkFlow') }}</a></li>
{%- endif %}
{%- else %}
<li role="presentation" {% if tab_value=='top' %}class="active"{% endif %}><a href="/">{{ _('Top') }}</a></li>
{%- if current_user.is_authenticated %}
<li role="presentation" {% if tab_value=='flow' %}class="active"{% endif %}><a href="{{url_for('weko_workflow.index')}}">{{ _('WorkFlow') }}</a></li>
{%- endif %}
<li role="presentation" {% if tab_value=='community' %}class="active"{% endif %}><a href="{{url_for('invenio_communities.community_list')}}">{{ _('Communities') }}</a></li>
{%- endif %}
<li role="presentation" class="{{ check_ranking_show() }} {% if tab_value=='rank' %}active{% endif %}"><a href="{{url_for('weko_items_ui.ranking')}}">{{ _('Ranking') }}</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{%- block body_center %}
<ul class="nav nav-tabs">
{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{%- endblock page_body_tabs%}
</ul>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow', community_id) }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow',community_id) }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{%- extends config.WEKO_WORKFLOW_BASE_TEMPLATE %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow') }}
{%- endblock page_body_tabs%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow', community_id) }}
{%- endblock page_body_tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{%- endblock javascript %}

{%- block page_body_tabs %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector %}
{% from "weko_theme/macros/tabs_selector.html" import tabs_selector with context %}
{{ tabs_selector('flow', community_id) }}
{%- endblock page_body_tabs %}

Expand Down