7 changed files with 86 additions and 4 deletions
@ -0,0 +1,3 @@ |
|||
li a { |
|||
color: green; |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
<!doctype html> |
|||
<html lang="en-US"> |
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<title>Tagging publications</title> |
|||
</head> |
|||
<body> |
|||
{% if publication %} |
|||
{% for author in publication.authors.all %} |
|||
<a>{{ author.name }}, </a> |
|||
{% endfor %} |
|||
<h2>{{ publication.title }} ({{ publication.year }})</h2> |
|||
{% if publication.doi %} |
|||
<!-- atm this is a link under /tag as well! --> |
|||
<a href="https://doi.org/{{ publication.doi }}">{{ publication.doi }}</a> |
|||
{% endif %} |
|||
{% else %} |
|||
<p>No publications are available.</p> |
|||
{% endif %} |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,21 @@ |
|||
<!doctype html> |
|||
{% load static %} |
|||
|
|||
<link rel="stylesheet" href="{% static 'tag/style.css' %}"> |
|||
<html lang="en-US"> |
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<title>List for tagging publications</title> |
|||
</head> |
|||
<body> |
|||
{% if newest_publications %} |
|||
<ul> |
|||
{% for publication in newest_publications %} |
|||
<li><a href="{% url 'detail' publication.cite_key %}/">{{ publication.title }}, {{publication.year}}</a></li> |
|||
{% endfor %} |
|||
</ul> |
|||
{% else %} |
|||
<p>No publications are available.</p> |
|||
{% endif %} |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,8 @@ |
|||
from django.urls import path |
|||
|
|||
from . import views |
|||
|
|||
urlpatterns = [ |
|||
path("", views.IndexView.as_view(), name="index"), |
|||
path("<path:cite_key>", views.detail, name="detail"), |
|||
] |
|||
Loading…
Reference in new issue