SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0989c43a authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Complete last commit

Last commit was incomplete as the
 gitignore was not suffiently working on
 all static files.
It now includes the renewed template files
 to make the homepage reponsive. Also, it
 completes the configuration for Bootstrap
 Webpack loader.
parent a697e1a0
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ UPLOADS
docs/_build
local_files/
static/
!/scipost/static/
static_bundles/
whoosh_index
......@@ -311,7 +311,7 @@ body {
/* font-family: Merriweather, sans-serif; */
font-family: 'Merriweather Sans';
font-weight: lighter;
font-size: 80%;
font-size: 0.8rem;
margin: 0px;
padding: 0px;
background-color: #ffffff;
......@@ -374,68 +374,17 @@ header p {
nav {
background-color: #f0f0f0;
color: #002B49;
/*color: #002B49;
margin:0px;
padding:0px;
float:center;
clear:both;
font-size: 12px;
font-weight: 500;
}
nav #loggedinas {
font-size: 12px;
}
nav ul {
margin: 0;
padding: 5px;
}
nav ul li {
display: inline;
margin: 5px;
padding: 5px;
background-color: #204080;
color: #002B49;
/* color: #222222; */
float: center;
clear: both;
}
nav a {
margin: 5px;
padding: 5px;
background-color: #f0f0f0;
color: #002B49;
/* color: #000000; */
text-decoration: none;
display: inline-block;
target: _parent;
}
nav a:visited {
color: #002B49;
/* color: #000000; */
}
nav a:hover {
color: #000000;
/* color: #FFA300 */
text-decoration: none;
background-color: #FFFFFF;
}
nav a:active {
color: #222222;
}
nav a.highlighted {
/* background-color: #FFFFFF; */
border: 1px solid black;
}
nav p {
display: inline-block;
margin: 10px;
padding: 0px;
}
nav form {
display: inline-block;
clear:both;*/
/*font-size: 12px;*/
/*font-weight: 500;*/
}
ol {
list-style-type: none;
counter-reset: item;
......@@ -472,7 +421,6 @@ section {
text-align: justify;
}
section a {
color: #103050;
color: #6884C2;
text-decoration: none;
target: _parent;
......@@ -638,9 +586,7 @@ article {
footer {
background-color: #002B49;
color: #ffffff;
border: 1px solid grey; border-radius:1px;
margin:5px; margin-bottom:10px;
padding:5px;
border-top: 1px solid grey;
}
footer a {
color: #eeeeee;
......
a {
color: #6884C2;
text-decoration: none;
}
a:hover {
color: #103050;
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 5px 0;
text-shadow: none;
font-weight: 500;
}
// General variable structure
//
//
// Colors
//
$blue: #6884C2 !default;
// Fonts
//
$font-family-sans-serif: 'Merriweather Sans', "Helvetica Neue", Arial, sans-serif !default;
$font-family-serif: $font-family-sans-serif !default;
$font-family-monospace: $font-family-sans-serif !default;
$font-family-base: $font-family-sans-serif !default;
$font-size-base: 0.8rem !default;
.form-control,
.btn {
font-family: inherit;
}
......@@ -3,26 +3,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'scipost/SciPost.css' %}" />
{% render_bundle 'bootstrap' 'css' %}
{% render_bundle 'main' 'css' %}
<link rel="shortcut icon" href="{% static 'scipost/images/scipost_favicon.png' %}"/>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}});
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SciPost{% block pagetitle %}{% endblock pagetitle %}</title>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
{% block headsup %}
{% endblock headsup %}
</head>
......@@ -39,7 +35,23 @@
{% include 'scipost/footer.html' %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}});
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{% render_bundle 'main' 'js' %}
</body>
{% render_bundle 'bootstrap' 'js' %}
<script type="text/javascript" src="{% static 'scipost/global/utils.js' %}"></script>
<script type="text/javascript" src="{% static 'scipost/global/collapse.js' %}"></script>
{% block footer_script %}
{% endblock footer_script %}
</body>
</html>
{% load staticfiles %}
<footer>
<footer class="container-fluid py-2">
<div class="row">
<div class="col-4">
Copyright &copy; <a href="{% url 'scipost:foundation' %}">SciPost Foundation</a>.
<div class="col-md-4">
Copyright &copy; <a href="{% url 'scipost:foundation' %}" target="_">SciPost Foundation</a>.
<br/>
<a href="mailto:admin@scipost.org">Contact the administrators.</a>
<br/>
<a href="{% url 'scipost:terms_and_conditions' %}">Terms and conditions.</a>
</div>
<div class="col-2">
<div class="col-md-3">
Follow us:<br/>
<table>
<tr>
<td><a href="https://www.facebook.com/scipost" target="_blank" title="Facebook"><img src="{% static 'scipost/images/FB-f-Logo__white_29.png' %}" width="20" alt="Facebook"/></a></td>
<td><a href="https://twitter.com/scipost_dot_org" target="_blank" title="Twitter"><img src="{% static 'scipost/images/Twitter_Logo_Blue.png' %}" width="32" alt="Twitter"/></a></td>
<td><a style="float: right;" href="{% url 'scipost:feeds' %}"><img src="{% static 'scipost/images/feed-icon-28x28.png' %}" alt="Feed logo" width="20"></a></td>
</tr>
<tr>
<td><a href="//www.facebook.com/scipost" target="_blank" title="Facebook"><img src="{% static 'scipost/images/FB-f-Logo__white_29.png' %}" width="20" alt="Facebook"/></a></td>
<td><a href="//twitter.com/scipost_dot_org" target="_blank" title="Twitter"><img src="{% static 'scipost/images/Twitter_Logo_Blue.png' %}" width="32" alt="Twitter"/></a></td>
<td><a style="float: right;" href="{% url 'scipost:feeds' %}"><img src="{% static 'scipost/images/feed-icon-28x28.png' %}" alt="Feed logo" width="20"></a></td>
</tr>
</table>
</div>
<div class="col-1">
<div class="col-md-5">
<a rel="license" href="//creativecommons.org/licenses/by/4.0/" target="_blank"><img alt="Creative Commons License" style="border-width:0" src="//i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />Except where otherwise noted, all content on SciPost is licensed under a <a rel="license" href="//creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International License</a>.
</div>
<div class="col-5">
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />Except where otherwise noted, all content on SciPost is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
</div>
</div>
</footer>
......@@ -4,135 +4,148 @@
{% block bodysup %}
<div class="container-fluid">
<div class="row">
{% if latest_newsitems %}
<div class="col-md-6 {% if user.is_authenticated %}col-lg-4{% else %}col-lg-3{% endif %}">
<div class="panel">
<h1><a href="{% url 'scipost:news' %}">News</a><a style="float: right;" href="{% url 'scipost:feeds' %}"><img src="{% static 'scipost/images/feed-icon-14x14.png' %}" alt="Feed logo" width="14"></a></h1>
<p>Latest news and announcements.</p>
<hr class="hr6"/>
<ul class="NewsItemsList">
{% for item in latest_newsitems %}
<li>{{ item.descriptor_small|linebreaks }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<section>
<div class="flex-container">
{% if latest_newsitems %}
<div class="flex-greybox320">
<h1><a href="{% url 'scipost:news' %}">News</a><a style="float: right;" href="{% url 'scipost:feeds' %}"><img src="{% static 'scipost/images/feed-icon-14x14.png' %}" alt="Feed logo" width="14"></a></h1>
<p>Latest news and announcements.</p>
<hr class="hr6"/>
<ul class="NewsItemsList">
{% for item in latest_newsitems %}
<li>{{ item.descriptor_small|linebreaks }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="flex-greybox320">
<h1><a href="{% url 'scipost:about' %}">About SciPost</a></h1>
<p>SciPost is a complete scientific publication portal managed by active professional scientists.</p>
<p>It is purely online-based and offers openly, globally and perpetually accessible science.</p>
<h3><a href="{% url 'scipost:about' %}#advisory_board">Advisory Board</a></h3>
<h3><a href="{% url 'scipost:call' %}">A call for openness</a></h3>
<h3><a href="{% url 'scipost:quick_tour' %}">Quick Tour</a></h3>
<h3><a href="{% url 'scipost:FAQ' %}">Frequently asked questions</a></h3>
<h3><a href="{% url 'scipost:about' %}">Read more</a></h3>
<h4><em>In the press:</em></h4>
<ul>
<li><a href="{% static 'scipost/press/SciPost_in_FOM_expres_mei_2016.pdf' %}">FOM expres 5/2016</a> (<a href="{% static 'scipost/press/SciPost_in_FOM_expres_mei_2016_eng.pdf' %}">English vn</a>)</li>
<li><a href="http://www.uva.nl/en/news-events/news/uva-news/content/news/2016/10/open-access-platform-scipost-launches-inaugural-edition-of-first-journal.html">Inaugural issue 10/2016</a></li>
</ul>
</div>
<div class="col-md-6 {% if user.is_authenticated %}col-lg-4{% else %}col-lg-3{% endif %}">
<div class="panel">
<h1><a href="{% url 'scipost:about' %}">About SciPost</a></h1>
<p>SciPost is a complete scientific publication portal managed by active professional scientists.</p>
<p>It is purely online-based and offers openly, globally and perpetually accessible science.</p>
<h3><a href="{% url 'scipost:about' %}#advisory_board">Advisory Board</a></h3>
<h3><a href="{% url 'scipost:call' %}">A call for openness</a></h3>
<h3><a href="{% url 'scipost:quick_tour' %}">Quick Tour</a></h3>
<h3><a href="{% url 'scipost:FAQ' %}">Frequently asked questions</a></h3>
<h3><a href="{% url 'scipost:about' %}">Read more</a></h3>
<h4><em>In the press:</em></h4>
<ul>
<li><a href="{% static 'scipost/press/SciPost_in_FOM_expres_mei_2016.pdf' %}">FOM expres 5/2016</a> (<a href="{% static 'scipost/press/SciPost_in_FOM_expres_mei_2016_eng.pdf' %}">English vn</a>)</li>
<li><a href="http://www.uva.nl/en/news-events/news/uva-news/content/news/2016/10/open-access-platform-scipost-launches-inaugural-edition-of-first-journal.html">Inaugural issue 10/2016</a></li>
</ul>
</div>
</div>
{% if not user.is_authenticated %}
<div class="flex-greybox320">
<h1><a href="{% url 'scipost:register' %}">Register</a></h1>
<p>Professional scientists (PhD students and above) can become Contributors to SciPost by filling the
<a href="{% url 'scipost:register' %}">registration form</a>.</p>
<h4>Registered contributors can among others:</h4>
<ul>
<li>Submit manuscripts to SciPost Journals</li>
<li>Post reports and comments</li>
<li>Express opinions on contributions</li>
<li>Subscribe to feeds</li>
<li>Use productivity tools</li>
</ul>
</div>
{% endif %}
{% if not user.is_authenticated %}
<div class="col-md-6 col-lg-3">
<div class="panel">
<h1><a href="{% url 'scipost:register' %}">Register</a></h1>
<p>Professional scientists (PhD students and above) can become Contributors to SciPost by filling the
<a href="{% url 'scipost:register' %}">registration form</a>.</p>
<h4>Registered contributors can among others:</h4>
<ul>
<li>Submit manuscripts to SciPost Journals</li>
<li>Post reports and comments</li>
<li>Express opinions on contributions</li>
<li>Subscribe to feeds</li>
<li>Use productivity tools</li>
</ul>
</div>
</div>
{% endif %}
<div class="flex-greybox320">
<h1><a href="{% url 'journals:journals' %}">Journals</a></h1>
<p>SciPost publishes a portfolio of high-quality two-way open access scientific journals.</p>
<p>All SciPost Journals implement the stringent <a href="/FAQ#pwr">peer-witnessed refereeing</a> principle.</p>
<p>All Journals are fully managed by professional scientists.</p>
<h3><a href="{% url 'scipost:about' %}#editorial_college_physics">Editorial College (Physics)</a></h3>
<h3><a href="{% url 'submissions:sub_and_ref_procedure' %}">Submission and refereeing procedure</a></h3>
<br/>
<p>View and comment on (login required) recent <a href="{% url 'submissions:submissions' %}">Submissions</a></p>
<br/>
<div class="SciPostPhysicsBanner">
<h3><a href="{% url 'journals:scipost_physics' %}">SciPost Physics</a></h3>
</div>
<br/>
<p style="color: red;"><em>If you support and believe in our mission, <br/>be a pioneer and submit a manuscript!</em></p>
</div>
<div class="col-md-6 {% if user.is_authenticated %}col-lg-4{% else %}col-lg-3{% endif %}">
<div class="panel">
<h1><a href="{% url 'journals:journals' %}">Journals</a></h1>
<p>SciPost publishes a portfolio of high-quality two-way open access scientific journals.</p>
<p>All SciPost Journals implement the stringent <a href="/FAQ#pwr">peer-witnessed refereeing</a> principle.</p>
<p>All Journals are fully managed by professional scientists.</p>
<h3><a href="{% url 'scipost:about' %}#editorial_college_physics">Editorial College (Physics)</a></h3>
<h3><a href="{% url 'submissions:sub_and_ref_procedure' %}">Submission and refereeing procedure</a></h3>
<br/>
<p>View and comment on (login required) recent <a href="{% url 'submissions:submissions' %}">Submissions</a></p>
<br/>
</div>
<div class="flex-container">
<div class="flex-greybox320">
<h1><a href="{% url 'commentaries:commentaries' %}">Commentaries</a></h1>
<p>SciPost Commentaries allow Contributors to comment and build on all existing literature.</p>
<br/>
{% comment %}
<h3>Search SciPost Commentaries:</h3>
<form action="{% url 'commentaries:commentaries' %}" method="post">
{% csrf_token %}
<table>
{{ commentary_search_form.as_table }}
</table>
<input type="submit" name="Submit" />
</form>
{% endcomment %}
<h3><a href="{% url 'commentaries:howto' %}">SciPost Commentaries how-to</a></h3>
<h3><a href="{% url 'commentaries:request_commentary' %}">Request a new Commentary Page</a></h3>
<br/>
<div class="SciPostPhysicsBanner">
<h3><a href="{% url 'journals:scipost_physics' %}">SciPost Physics</a></h3>
</div>
<br/>
<p style="color: red;"><em>If you support and believe in our mission, <br/>be a pioneer and submit a manuscript!</em></p>
</div>
</div>
</div>
<div class="flex-greybox320">
<h1><a href="{% url 'theses:theses' %}">Theses</a></h1>
<p>SciPost Theses allow Contributors to find Master's, Ph.D. and Habilitation theses relevant to their work.</p>
<br/>
{% comment %}
<h3>Search SciPost Theses:</h3>
<form action="{% url 'theses:theses' %}" method="post">
{% csrf_token %}
<table>
{{ thesislink_search_form.as_table }}
</table>
<input type="submit" name="Submit" />
</form>
{% endcomment %}
<h3><a href="{% url 'theses:request_thesislink' %}">Request a new Thesis Link</a></h3>
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="panel">
<h1><a href="{% url 'commentaries:commentaries' %}">Commentaries</a></h1>
<p>SciPost Commentaries allow Contributors to comment and build on all existing literature.</p>
<br/>
{% comment %}
<h3>Search SciPost Commentaries:</h3>
<form action="{% url 'commentaries:commentaries' %}" method="post">
{% csrf_token %}
<table>
{{ commentary_search_form.as_table }}
</table>
<input type="submit" name="Submit" />
</form>
{% endcomment %}
<h3><a href="{% url 'commentaries:howto' %}">SciPost Commentaries how-to</a></h3>
<h3><a href="{% url 'commentaries:request_commentary' %}">Request a new Commentary Page</a></h3>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="panel">
<h1><a href="{% url 'theses:theses' %}">Theses</a></h1>
<p>SciPost Theses allow Contributors to find Master's, Ph.D. and Habilitation theses relevant to their work.</p>
<br/>
{% comment %}
<h3>Search SciPost Theses:</h3>
<form action="{% url 'theses:theses' %}" method="post">
{% csrf_token %}
<table>
{{ thesislink_search_form.as_table }}
</table>
<input type="submit" name="Submit" />
</form>
{% endcomment %}
<h3><a href="{% url 'theses:request_thesislink' %}">Request a new Thesis Link</a></h3>
</div>
</div>
</div>
</div>
</section>
</div>
<section>
<hr class="hr12">
<div class="row">
<div class="col-6">
<h1>SciPost is endorsed by</h1>
<div class="row">
<div class="col-6">
<a href="https://www.nwo.nl/en"><img src="{% static 'scipost/images/NWO_logo_EN.jpg' %}" alt="NWO logo" width="300" /></a>
<p id="NWOOpenAccess">All articles published in SciPost Journals fulfill the Gold standard Open Access requirements of the NWO, as
stipulated on the NWO’s <a href="https://www.nwo.nl/en/policies/open+science">Open Science page</a>.</p>
</div>
<div class="col-1">
</div>
<div class="col-4">
<a href="https://www.fom.nl"><img src="{% static 'scipost/images/FOMlogo_fc.jpg' %}" alt="FOM logo" width="100" /></a>
<p style="font-size: 50%">FOM is part of NWO</p>
</div>
</div>
</div>
<div class="col-6">
<h1>SciPost is a member of</h1>
<br/>
<a href="http://www.crossref.org"><img src="https://assets.crossref.org/logo/crossref-logo-200.svg" width="100" alt="Crossref logo"></a>
<div class="container-fluid">
<hr class="hr12">
<div class="row">
<div class="col-md-6">
<h1>SciPost is endorsed by</h1>
<div class="row">
<div class="col-md-6">
<a href="//www.nwo.nl/en" target="_blank"><img src="{% static 'scipost/images/NWO_logo_EN.jpg' %}" alt="NWO logo" width="300" /></a>
<p id="NWOOpenAccess">All articles published in SciPost Journals fulfill the Gold standard Open Access requirements of the NWO, as
stipulated on the NWO’s <a href="//www.nwo.nl/en/policies/open+science" target="_blank">Open Science page</a>.</p>
</div>
<div class="col-md-6">
<a href="//www.fom.nl" target="_blank"><img src="{% static 'scipost/images/FOMlogo_fc.jpg' %}" alt="FOM logo" width="100" /></a>
<p style="font-size: 50%">FOM is part of NWO</p>
</div>
</div>
</div>
<div class="col-md-6">
<h1>SciPost is a member of</h1>
<br/>
<a href="//www.crossref.org" target="_blank"><img src="//assets.crossref.org/logo/crossref-logo-200.svg" width="100" alt="Crossref logo"></a>
</div>
</div>
</div>
</section>
</div>
{% endblock bodysup %}
<nav>
<div class="row">
<div class="col-5">
<a href="{% url 'scipost:index' %}" {% if request.path == '/' %}class="highlighted"{% endif %}>Home</a>
<a href="{% url 'journals:journals' %}" {% if "/journals/" in request.path %}class="highlighted"{% endif %}>Journals</a>
<a href="{% url 'submissions:submissions' %}" {% if "/submissions/" in request.path %}class="highlighted"{% endif %}>Submissions</a>
<a href="{% url 'commentaries:commentaries' %}" {% if "/commentaries/" in request.path %}class="highlighted"{% endif %}>Commentaries</a>
<a href="{% url 'theses:theses' %}" {% if "/theses/" in request.path %}class="highlighted"{% endif %}>Theses</a>
</div>
<div class="col-4">
<nav class="navbar navbar-toggleable-md">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#header-navbar">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#"></a>
<div class="collapse navbar-collapse" id="header-navbar">
<ul class="navbar-nav mr-auto">
<li class="nav-item{% if request.path == '/' %} active{% endif %}">
<a href="{% url 'scipost:index' %}" class="nav-link">Home</a>
</li>
<li class="nav-item{% if '/journals/' in request.path %} active{% endif %}">
<a href="{% url 'journals:journals' %}" class="nav-link">Journals</a>
</li>
<li class="nav-item{% if '/submissions/' in request.path %} active{% endif %}">
<a class="nav-link" href="{% url 'submissions:submissions' %}">Submissions</a>
</li>
<li class="nav-item{% if '/commentaries/' in request.path %} active{% endif %}">
<a class="nav-link" href="{% url 'commentaries:commentaries' %}">Commentaries</a>
</li>
<li class="nav-item{% if '/theses/' in request.path %} active{% endif %}">
<a class="nav-link" href="{% url 'theses:theses' %}">Theses</a>
</li>
{% if user.is_authenticated %}
<p id="loggedinas"><em>Logged in as {{ user.username }}</em></p>
<a href="{% url 'scipost:logout' %}">Logout</a>
<a href="{% url 'scipost:personal_page' %}" {% if "/personal_page" in request.path %}class="highlighted"{% endif %}>Personal Page</a>
<li class="nav-item highlighted">
<span class="nav-link">Logged in as {{ user.username }}</span>
</li>
<li class="nav-item{% if '/personal_page' in request.path %} active{% endif %}">
<a class="nav-link" href="{% url 'scipost:personal_page' %}">Personal Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'scipost:logout' %}">Logout</a>
</li>
{% else %}
<a href="{% url 'scipost:login' %}">Login</a>
<li class="nav-item{% if request.path == '/login/' %} active{% endif %}">
<a class="nav-link" href="{% url 'scipost:login' %}">Login</a>
</li>
{% endif %}
</div>
<div class="col-3">
<form action="{% url 'scipost:search' %}" method="post">
{% csrf_token %}
{{ search_form.as_p }}
<input type="submit" value="Search"/>
</form>
</div>
</ul>
<form action="{% url 'scipost:search' %}" method="post" class="form-inline">
{% csrf_token %}
{{ search_form }}
<button class="btn btn-primary" type="submit">Search</button>
</form>
</div>
</nav>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment