SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
fdcb4005
Commit
fdcb4005
authored
5 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Improve presentation of full journals list
parent
04a72ec6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
journals/templates/journals/journal_list.html
+40
-27
40 additions, 27 deletions
journals/templates/journals/journal_list.html
with
40 additions
and
27 deletions
journals/templates/journals/journal_list.html
+
40
−
27
View file @
fdcb4005
...
...
@@ -83,13 +83,13 @@
</td>
<td>
{% for discipline in branch.1 %}
{% with journals_branch|journals_in_discipline:discipline.0 as journals_disc %}
{% with journals_branch|journals_in_discipline:discipline.0 as journals_disc %}
{% if journals_disc|length > 0 %}
<a
href=
{%
url
'
journals:journals
'
discipline=
discipline.0
%}
><button
type=
"button"
class=
"btn btn-primary btn-sm"
><small>
{{ discipline.1 }}
</small></button></a>
{% else %}
<button
type=
"button"
class=
"btn btn-sm btn-outline-secondary m-1"
><small><em>
{{ discipline.1 }}
</em></small></button>
{% endif %}
{% endwith %}
{% endwith %}
{% endfor %}
</td>
</tr>
...
...
@@ -102,43 +102,56 @@
</div>
<h2
class=
"highlight"
>
Full list of our Journals
</h2>
<table
class=
"table table-borderless"
>
{% for branch in scipost_disciplines %}
{% with object_list|journals_in_branch:branch.0 as journals_branch %}
{% for discipline in branch.1 %}
{% with journals_branch|journals_in_discipline:discipline.0 as journals_disc %}
{% if journals_disc|length > 0 %}
<tr>
<td
class=
"align-middle"
><strong>
{{ discipline.0|capfirst }}
</strong></td>
<td>
<ul
class=
"list-group m-2"
>
{% for journal in journals_disc %}
<li
class=
"list-group-item m-1 px-3 py-2 {{ journal.doi_label }}"
>
<a
href=
"{{ journal.get_absolute_url }}"
>
{{ journal.name }}
</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% endwith %}
{% endfor %}
{% endwith %}
{% endfor %}
</table>
{% else %}
<div
class=
"card-columns"
>
{% for journal in object_list %}
{% if journal.active or perms.scipost.can_view_pool %}
<div
class=
"card"
>
<div
class=
"card-header {{ journal.doi_label }}"
>
<a
href=
"{{ journal.get_absolute_url }}"
>
{{ journal.name }}
</a>
{% if journal.has_DOAJ_Seal %}
<a
href=
"https://doaj.org"
class=
"float-right"
><img
src=
"{% static 'scipost/images/DOAJ_Seal_logo_big.png' %}"
alt=
"DOAJ Seal"
width=
"20em"
></a>
{% endif %}
</div>
<div
class=
"card-body"
>
{{ journal.blurb|automarkup }}
</div>
</div>
{% endif %}
{% empty %}
<p>
There are no Journals yet in this branch of academia.
<strong>
Help us to get started: nominate potential Fellows by
<a
href=
"mailto:admin@scipost.org"
>
emailing us
</a>
with your suggestions!
</strong>
</p>
{% endfor %}
</div>
{% else %}
<div
class=
"card-columns"
>
{% for journal in object_list %}
{% if journal.active or perms.scipost.can_view_pool %}
<div
class=
"card"
>
<div
class=
"card-header {{ journal.doi_label }}"
>
<a
href=
"{{ journal.get_absolute_url }}"
>
{{ journal.name }}
</a>
{% if journal.has_DOAJ_Seal %}
<a
href=
"https://doaj.org"
class=
"float-right"
><img
src=
"{% static 'scipost/images/DOAJ_Seal_logo_big.png' %}"
alt=
"DOAJ Seal"
width=
"20em"
></a>
{% endif %}
</div>
<div
class=
"card-body"
>
{{ journal.blurb|automarkup }}
</div>
</div>
{% endif %}
{% empty %}
<p>
There are no Journals yet in this branch of academia.
<strong>
Help us to get started: nominate potential Fellows by
<a
href=
"mailto:admin@scipost.org"
>
emailing us
</a>
with your suggestions!
</strong>
</p>
{% endfor %}
</div>
{% endif %}
{% endblock content %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment