summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-01-29 21:27:27 +0100
committerJelle van der Waa <jelle@archlinux.org>2019-02-18 16:42:51 +0100
commit2a6d8b18bf5e1cacc5f869d8e25bc36d2d999de1 (patch)
treed7fae9f4b3956b556585fc39d850868b9b4780ea
parentbf4e52e6358cbfda384a5f5af9678a8a094ce28e (diff)
downloadarchweb-2a6d8b18bf5e1cacc5f869d8e25bc36d2d999de1.tar.gz
archweb-2a6d8b18bf5e1cacc5f869d8e25bc36d2d999de1.zip
templates: remove inline styles
Remove inline styles to hide itemprop's and use a global css class for it.
-rw-r--r--sitestatic/archweb.css5
-rw-r--r--templates/news/view.html4
-rw-r--r--templates/packages/package_details.html2
-rw-r--r--templates/public/developer_list.html2
4 files changed, 9 insertions, 4 deletions
diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css
index bfb35fd1..3b676442 100644
--- a/sitestatic/archweb.css
+++ b/sitestatic/archweb.css
@@ -1131,3 +1131,8 @@ ul.signoff-list {
#release-table th:first-of-type {
width: 30px;
}
+
+/* itemprops */
+.itemprop {
+ display: none;
+}
diff --git a/templates/news/view.html b/templates/news/view.html
index 8f49fb1f..55f8a82e 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -9,10 +9,10 @@
<meta itemprop="dateModified" content="{{ news.last_modified|date:"Y-m-d" }}"/>
<meta itemprop="inLanguage" content="en"/>
<meta itemprop="wordCount" content="{{ news.content|wordcount }}"/>
- <div style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
+ <div class="itemprop" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{ news.author.get_full_name|escape }}"/>
</div>
- <div style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
+ <div class="itemprop" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Arch Linux"/>
</div>
diff --git a/templates/packages/package_details.html b/templates/packages/package_details.html
index 25fa99da..8cd64580 100644
--- a/templates/packages/package_details.html
+++ b/templates/packages/package_details.html
@@ -71,7 +71,7 @@
<meta itemprop="dateCreated" content="{{ pkg.build_date|date:"Y-m-d" }}"/>
<meta itemprop="datePublished" content="{{ pkg.last_update|date:"Y-m-d" }}"/>
<meta itemprop="operatingSystem" content="Arch Linux"/>
- {% if pkg.packager %}<div style="display:none" itemprop="provider" itemscope itemtype="http://schema.org/Person">
+ {% if pkg.packager %}<div class="itemprop" itemprop="provider" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{ pkg.packager.get_full_name|escape }}"/>
</div>{% endif %}
<table id="pkginfo">
diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html
index 954216ce..58cf04ab 100644
--- a/templates/public/developer_list.html
+++ b/templates/public/developer_list.html
@@ -22,7 +22,7 @@
<meta itemprop="givenName" content="{{ dev.first_name|escape }}"/>
<meta itemprop="familyName" content="{{ dev.last_name|escape }}"/>
<meta itemprop="jobTitle" content="{{ group.member_title|escape }}"/>
- <div style="display:none" itemprop="memberOf" itemscope itemtype="http://schema.org/Organization">
+ <div class="itemprop" itemprop="memberOf" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Arch Linux"/>
</div>
<h3>{{ dev.get_full_name }}{% if prof.latin_name %} ({{ prof.latin_name}}){% endif %}