]> git.ipfire.org Git - ipfire.org.git/commitdiff
users/*: use ogp module
authorRico Hoppe <rico.hoppe@ipfire.org>
Wed, 29 May 2024 14:55:39 +0000 (14:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:05:32 +0000 (14:05 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/users/groups/index.html
src/templates/users/index.html
src/templates/users/show.html
src/templates/users/subscribe.html
src/templates/users/unsubscribe.html

index 1714a06ce649515cc4f818008a1d36f27ea13bcd..67d8ed0f3630bc199d6b2ecb6ca2941ae63e4c5e 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Groups") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire - Groups") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/users/groups">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Groups Help Organising Our Staff - IPFire">
-    <meta property="og:description" content="Subscribe and you will receive important emails from the IPFire Project">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/users/groups">
-    <meta name="twitter:title" content="www.ipfire.org - Groups Help Organising Our Staff">
-    <meta name="twitter:description" content="Subscribe and you will receive important emails from the IPFire Project">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire - Groups"),
+               description="Groups Help Organising Our IPFire Staff to ensure Fast and Coordinated Development",
+       ) %}
 {% end block %}
 
 {% block container %}
index 22efbefb3223133214d0b272be56dd8dc5a83895..4683cff8a53fc36b21117533f8dafda11b30bf8e 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Users") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire - Users") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/users">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Users - IPFire">
-    <meta property="og:description" content="Users of The IPFire Project">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/users">
-    <meta name="twitter:title" content="www.ipfire.org - Users">
-    <meta name="twitter:description" content="Users of The IPFire Project">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire - Users"),
+               description="Users of The IPFire Project",
+       ) %}
 {% end block %}
 
 {% block container %}
index 84152a1e40d07c0d83f69adfb1bd2a96e7ee2624..43f8c848210ea56df0dd08e062192cb50d3d29b9 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ account }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire - %s") % {{ account }} }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/users/{{ account }}">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="{{ account }} - IPFire">
-    <meta property="og:description" content="The User Page of {{ account.uid }} - {{ account }}">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/users/{{ account }}">
-    <meta name="twitter:title" content="www.ipfire.org - {{ account }}">
-    <meta name="twitter:description" content="The User Page of {{ account.uid }} - {{ account }}">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire %s" % account),
+               description="The User Page of %s" % account.uid,
+       ) %}
 {% end block %}
 
 {% block container %}
index 58e9755323696804a6dc5fc6c4c18b82fad99cde..e262660298be04c6b27e3761b8bc70ac73e66b98 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Subscribe") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire - Subscribe") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/subscribe">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Subscribe Now To Stay Up To Date - IPFire">
-    <meta property="og:description" content="Subscribe and you will receive important emails from the IPFire Project">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/subscribe">
-    <meta name="twitter:title" content="www.ipfire.org - Subscribe Now To Stay Up To Date">
-    <meta name="twitter:description" content="Subscribe and you will receive important emails from the IPFire Project">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire - Subscribe"),
+               description="Subscribe and you will receive important emails from the IPFire Project",
+       ) %}
 {% end block %}
 
 {% block container %}
index 56b4f4bdc766b91d837fb194b5aa192135e410be..22e9cdfe8a85498c91a42c8d2b80536a98dac56d 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Unsubscribe") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire - Unsubscribe") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/unsubscribe">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="We'd Be Sorry To See You Go - IPFire">
-    <meta property="og:description" content="If you unsubscribe, you will no longer receive important emails from the IPFire Project">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/unsubscribe">
-    <meta name="twitter:title" content="www.ipfire.org - We'd Be Sorry To See You Go">
-    <meta name="twitter:description" content="If you unsubscribe, you will no longer receive important emails from the IPFire Project">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire - Unsubscribe"),
+               description="If you unsubscribe, you will no longer receive important emails from the IPFire Project",
+       ) %}
 {% end block %}
 
 {% block container %}