Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gardener committed Nov 8, 2024
1 parent 3659a22 commit e863671
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions intertidal/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PersonResponsibilityStatementInline(NestedGenericTabularInline):
}

def note(self, obj):
return mark_safe('See the list of <a class="text-primary-500" href="https://www.loc.gov/marc/relators/relaterm.html" target="_blank">MARC Relators</a> for descriptions of each responsibility')
return mark_safe('See the list of <u><a href="https://www.loc.gov/marc/relators/relaterm.html" target="_blank">MARC Relators</a></u> for descriptions of each responsibility')

class OrganizationResponsibilityStatementInline(NestedGenericTabularInline):
fields = ['organization', 'marc_relators', 'note']
Expand All @@ -56,7 +56,7 @@ class OrganizationResponsibilityStatementInline(NestedGenericTabularInline):
}

def note(self, obj):
return mark_safe('See the list of <a class="text-primary-500" href="https://www.loc.gov/marc/relators/relaterm.html" target="_blank">MARC Relators</a> for descriptions of each responsibility/role')
return mark_safe('See the list of <u><a href="https://www.loc.gov/marc/relators/relaterm.html" target="_blank">MARC Relators</a></u> for descriptions of each responsibility/role')

class EditionInlineAdmin(NestedTabularInline):
fields = ['date', 'name', 'translation', 'translation_language']
Expand Down
2 changes: 1 addition & 1 deletion intertidal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class DisplayTypes(models.TextChoices):
alternative_names = ArrayField(models.CharField(), default=list, blank=True, verbose_name='Alternative Names/Titles')
forms = ArrayField(
models.CharField(choices=ClsTypes.choices), default=list, blank=True, verbose_name='Physical/Digital Forms',
help_text=mark_safe('See the list of <a href="https://docs.citationstyles.org/en/stable/specification.html#appendix-iii-types" target="_blank">Citation Style Language Types</a> for descriptions of each form')
help_text=mark_safe('See the list of <u><a href="https://docs.citationstyles.org/en/stable/specification.html#appendix-iii-types" target="_blank">Citation Style Language Types</a></u> for descriptions of each form')
)
genres = ArrayField(models.CharField(), default=list, blank=True)
keywords = ArrayField(models.CharField(), default=list, blank=True)
Expand Down
Binary file modified intertidal/static/images/favicon.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions intertidal/templates/admin/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "admin/base.html" %}
{% load static %}

{% block extrahead %}
{{ block.super }}
<link rel="icon" type="image/x-icon" href="{% static 'images/favicon.ico' %}">
{% endblock %}
4 changes: 2 additions & 2 deletions intertidal/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_attrs(self, base_attrs, extra_attrs=None):
default_attrs = {
"data-allow-clear": False,
"data-token-separators": '|',
"data-width": '800px',
"data-width": '500px',
}
default_attrs.update(base_attrs)
return super().build_attrs(default_attrs, extra_attrs=extra_attrs)
Expand All @@ -64,7 +64,7 @@ def build_attrs(self, base_attrs, extra_attrs=None):
"data-allow-clear": False,
"data-minimum-input-length": 0,
"data-token-separators": '[",", " "]',
"data-width": '800px',
"data-width": '500px',
}
default_attrs.update(base_attrs)
return super().build_attrs(default_attrs, extra_attrs=extra_attrs)
Expand Down
4 changes: 4 additions & 0 deletions intertidal_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
from django.contrib.auth import views as auth_views
from django.urls import include, path

admin.site.site_header = "Intertidal"
admin.site.site_title = "Intertidal"
admin.site.index_title = "Welcome to the Intertidal admin interface"

urlpatterns = [
# health check ping endpoint
path('health_check/', include('health_check.urls')),
Expand Down

0 comments on commit e863671

Please sign in to comment.