Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Infoscience layout #11

Merged
merged 1 commit into from
Feb 21, 2018
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
43 changes: 0 additions & 43 deletions infoscience_exports/exports/templates/base.html

This file was deleted.

170 changes: 170 additions & 0 deletions infoscience_exports/exports/templates/base/en/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{% comment %}
from https://infoscience.epfl.ch/search?em=H
what changed ? :
fix urls that go to infosicence.epfl.ch
add js
- export.js
- bootstrap 4
load custom django lib
added blocks
- headcss
- headjs
- headtitle
- content
change login address
change headerselected dans le menu
TODO:
change langage address
change all link href to search
change <link rel="alternate"> to the good site (for google to know languages for this site)
{% endcomment %}


{% load i18n %}
{% load staticfiles %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/"
lang="en"
xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="en"/>
<title>{% block headtitle %}{% endblock %}</title>

<link rev="made" href="mailto:[email protected]"/>



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/lightgallery.min.css" type="text/css"/>

<link rel="stylesheet" href="//infoscience.epfl.ch/img/invenio.css?1cfcadb8e1e1e5d868f519777e477c2a" type="text/css"/>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="//infoscience.epfl.ch/img/invenio-ie7.css" />
<![endif]-->
<!--[if gt IE 8]>
<style type="text/css">div.restrictedflag {filter:none;}</style>
<![endif]-->
<link rel="canonical" href="https://infoscience.epfl.ch/search?em=H" />
<link rel="alternate" hreflang="fr" href="https://infoscience.epfl.ch/search?em=H&amp;ln=fr" />
<link rel="alternate" hreflang="en" href="https://infoscience.epfl.ch/search?em=H&amp;ln=en" />

<link rel="alternate" type="application/rss+xml" title="Infoscience RSS"
href="/rss?ln=en"/>
<link rel="search" type="application/opensearchdescription+xml"
href="https://infoscience.epfl.ch/opensearchdescription"
title="Infoscience"/>
<link rel="unapi-server" type="application/xml" title="unAPI" href="https://infoscience.epfl.ch/unapi"/>

<meta name="description" content="Infoscience exports configuration."/>
<meta name="keywords" content="Infoscience, Exports"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>




<script type="text/javascript" src="//infoscience.epfl.ch/js/jquery.min.js"></script>
<script type="text/javascript" src="//infoscience.epfl.ch/js/tind.js?d87f701abc988557a2d54ac310781f13"></script>

{% block headcss %}{% endblock %}

<script src="{% static "js/export.js" %}" type="text/javascript"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">

{% block headjs %}{% endblock %}


</head>
<body class="Infoscience search">
<div class="pageheader">

<!-- replaced page header -->
<div class="headerbox headerlogo">
<div class="topleftmenu-wrapper">
<ul class="menu neutrallist">
<li class="topleftmenu headermoduleboxbody"><div class="hassubmenu"><span class="langinfo headerspan">English</span><ul class="subsubmenu"><li><a href="/?ln=fr">Français</a></li></ul></div></li>
</ul>
</div>

<a class="menu-toggle">
<span class="menu-icon"><i class="fa fa-fw fa-bars"></i></span>
</a>
<ul class="menu topmenu neutrallist" style="display:none;">
<li class="headermoduleboxbody">
<a class="header"
href="/?ln=en">Search</a>
</li>

<li class="headermoduleboxbody">
<div class="hassubmenu">
<a hreflang="en" class="header" href="https://infoscience.epfl.ch/youraccount/display?ln=en">Personalize</a>
<ul class="subsubmenu"><li><a href="https://infoscience.epfl.ch/youralerts/list?ln=en">Your alerts</a></li><li><a href="https://infoscience.epfl.ch/yourbaskets/display?ln=en">Your baskets</a></li><li><a href="https://infoscience.epfl.ch/youralerts/display?ln=en">Your searches</a></li></ul><div class="subsubmenu-wrapper"><ul class="subsubmenu"><li><a href="https://infoscience.epfl.ch/youralerts/list?ln=en">Your alerts</a></li><li><a href="https://infoscience.epfl.ch/yourbaskets/display?ln=en">Your baskets</a></li><li><a href="https://infoscience.epfl.ch/youralerts/display?ln=en">Your searches</a></li></ul></div></div>
</li>





<li class="headermoduleboxbody">
<a class="header" href="https://infoscience.epfl.ch/collections/?c=Infoscience%2FResearch">
Browse Collections
</a>
</li>


<li class="headermoduleboxbody">
<a class="header" href="http://help-infoscience.epfl.ch/">
Help
</a>
</li>



</ul>
<div class="userinfoboxbody">
{% if user.is_authenticated %}
<i class="user-icon"></i><span class="account">{{ user.first_name }}&nbsp;{{ user.last_name }}</span><span class="separator"> :: </span>
<a class="userinfo logout" href="/logout">logout</a>
{% else %}
<i class="user-icon"></i><span class="account">guest</span><span class="separator"> :: </span>
<a class="userinfo logout" href="/login">login</a>

{% endif %}
</div>
</div>
<table class="navtrailbox">
<tr>
<td class="navtrailboxbody">
<a href="/?ln=en" class="navtrail">Home</a> &gt; Search Results
</td>
</tr>
</table>
<!-- end replaced page header -->

</div>

<div class="headerboxbodylogo-wrapper">



<div class="headerboxbodylogo scrolled">
<div class="logo-wrapper">

<a class="header-link has-img" href="/?ln=en">
<img class="header-img" src="//infoscience.epfl.ch/img/main_logo_en.png" alt="Infoscience"/>
</a>

</div>
</div>
</div>




<div class="pagebody"><div class="pagebodystripemiddle"><h1 class="headline">{% block headline %}{% endblock %}</h1>
{% block content %}
{% endblock %}
</div></div>

{% include "base/footer.html" %}
65 changes: 65 additions & 0 deletions infoscience_exports/exports/templates/base/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{% comment %}
from https://infoscience.epfl.ch/search?em=F
what changed ? :
added style="display: block" to page footer
removed "powered by tind"
<div class="pagebody"><div class="pagebodystripemiddle"></div></div>
{% endcomment %}

<footer class="pagefooter row" style="display: block">



<div id="botmiddle_links" class="col-sm-8 col-sm-offset-2"><a href='http://help-infoscience.epfl.ch/about'>About Infoscience</a> | <a href='mailto:[email protected]'>Contact</a> | <a href='http://www.epfl.ch/accessibility.en' target='_blank'>Accesibility © 2004-2018 EPFL all rights reserved</div>



<div id="tindfooter" class="col-sm-2">
</div>


<script type="text/javascript" src="https://cdn.jsdelivr.net/combine/npm/lightgallery,npm/lg-autoplay,npm/lg-fullscreen,npm/lg-hash,npm/lg-pager,npm/lg-share,npm/lg-thumbnail,npm/lg-video,npm/lg-zoom"></script>
<!-- A jQuery plugin that adds cross-browser mouse wheel support. (Optional) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"></script>


<script type="text/javascript">
</script><script async src='https://www.googletagmanager.com/gtag/js?id=UA-4833294-1'></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag('js',new Date),gtag('config','UA-4833294-1');</script><script>
</script>



<!-- Piwik -->
<script type='text/javascript'>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = '//piwik.tind.io/';
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', 1167]);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'piwik.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<noscript><p><img src='//piwik.tind.io/piwik.php?idsite=1167' style='border:0;' alt=''/></p>
</noscript>
<!-- End Piwik Code -->



<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] }
});
</script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>

</footer>
<input type="hidden" name="csrf_token" value="('ec3560876af279b550361d994e1b2f62220e8de1c7a04c716e6a535f3f4864d3', 1519141549.398933)">
</body>
</html>
Loading