Skip to content

Commit

Permalink
#2 new header and jumbotron; list views adapted to "original" Nabucco
Browse files Browse the repository at this point in the history
  • Loading branch information
pirnr81 committed Nov 3, 2021
1 parent c689755 commit 5398101
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 13 deletions.
2 changes: 1 addition & 1 deletion appcreator/management/commands/custom_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ def handle(self, *args, **kwargs):
related_tablet.mentioned_in_pub.add(bib_item)
except:
continue
# print(related_tablet.mentioned_in_pub.all())
print(related_tablet.mentioned_in_pub.all())
1 change: 1 addition & 0 deletions archiv/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ class Tablet(models.Model):
help_text="whatever",
).set_extra(
is_public=True,
data_lookup="Place of issue",
)
mentioned_place = models.ManyToManyField(
"Place",
Expand Down
Binary file added archiv/static/img/handcopy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added archiv/static/img/project_background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions archiv/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@

class ArchivTable(tables.Table):

id = tables.LinkColumn(verbose_name='ID')
name = tables.LinkColumn(verbose_name='Name')
merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

class Meta:
model = Archiv
sequence = ('id',)
sequence = ('name', 'alt_name', 'part_of',)
attrs = {"class": "table table-responsive table-hover"}


class BibliographyTable(tables.Table):

id = tables.LinkColumn(verbose_name='ID')
title = tables.LinkColumn()
merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
mentioned_place = tables.columns.ManyToManyColumn()
mentioned_archive = tables.columns.ManyToManyColumn()
mentioned_glossary_item = tables.columns.ManyToManyColumn()

class Meta:
model = Bibliography
sequence = ('id',)
sequence = ('title', 'short_title', 'publication_year', 'author',)
attrs = {"class": "table table-responsive table-hover"}


Expand Down
2 changes: 1 addition & 1 deletion archiv/templates/archiv/generic_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ <h2>
</a>
</div>
{% endif %}

</div>
</div>

{% endblock custom %}
{% endblock %}
4 changes: 2 additions & 2 deletions archiv/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ArchivListView(GenericListView):
formhelper_class = ArchivFilterFormHelper
table_class = ArchivTable
init_columns = [
'id', 'name',
'name', 'alt_name', 'part_of'
]
enable_merge = True

Expand Down Expand Up @@ -74,7 +74,7 @@ class BibliographyListView(GenericListView):
formhelper_class = BibliographyFilterFormHelper
table_class = BibliographyTable
init_columns = [
'id', 'short_title',
'title', 'short_title', 'publication_year', 'author',
]
enable_merge = True

Expand Down
29 changes: 28 additions & 1 deletion webpage/static/webpage/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,34 @@ body {
}

.navbar {
border-bottom: 5px solid #254aa5;;
border-bottom: 5px solid #254aa5;
}

.jumbotron {
position: relative;
}

#title-img {
opacity: 0.4;
border-radius: 50%;
max-width:100%;
height: auto;
}

.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #254aa5;
font-weight: bold;
font-size: 24px;
text-align: justify;
}

.center h1 {
text-align: center;
font-weight: bold;
}

span.select2-container--default .select2-selection--single .select2-selection__rendered {
Expand Down
4 changes: 3 additions & 1 deletion webpage/templates/webpage/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="container-fluid">
<!-- Your site title as branding in the menu -->
<a href="/" class="navbar-brand custom-logo-link" rel="home" itemprop="url">
<img src="{{ PROJECT_LOGO }}" class="img-fluid" alt="{% projects_metadata 'title' %}" itemprop="{% projects_metadata 'title' %}"/>
<img src="{% static 'img/Logo_NaBuCCo.jpg' %}" style="height:110px" class="img-fluid" alt="{% projects_metadata 'title' %}" itemprop="{% projects_metadata 'title' %}"/>
</a><!-- end custom logo -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"/>
Expand Down Expand Up @@ -103,6 +103,7 @@
</div>
</li>
</ul>
<div> <img src="{% static 'img/handcopy.jpg' %}" style="max-width: 80%; height: auto;"> </div>
<ul class="navbar-nav justify-content-end">
{% if user.is_authenticated %}
<li class="nav-item dropdown ml-auto">
Expand All @@ -121,6 +122,7 @@
</li>
{% endif %}
</ul>

</div>
<!-- .collapse navbar-collapse -->
</div>
Expand Down
10 changes: 7 additions & 3 deletions webpage/templates/webpage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
{% load webpage_extras %}
{% block content %}

<div class="jumbotron" style="background-image: url({% static 'webpage/img/project_background.jpg' %}) ">
<div class="jumbotron">
<div class="container">
<h1 style="text-align:center; color: #111;">{% projects_metadata 'title' %}</h1>
<img src="{% static 'img/project_background.jpg' %}" class='mx-auto d-block' id="title-img">
<!-- <h1 style="text-align:center; color: #111;">{% projects_metadata 'title' %}</h1>
<h3 style="text-align:center; color: #111;">{% projects_metadata 'subtitle' %}</h3>
<h5 style="text-align:center; color: #111;">{% projects_metadata 'description' %}</h5>
<h5 style="text-align:center; color: #111;">{% projects_metadata 'description' %}</h5> -->
<div class="center"><h1 class="display-2">NaBuCCo</h1>THE NEO-BABYLONIAN CUNEIFORM CORPUS aims at making available
the large corpus of archival documents from first millennium BCE Babylonia
to historians of the ancient world in general and Assyriologists in particular.</div>
</div>
</div>

Expand Down

0 comments on commit 5398101

Please sign in to comment.