diff --git a/content/verenigingen/mcantus.md b/content/verenigingen/massacantus.md similarity index 62% rename from content/verenigingen/mcantus.md rename to content/verenigingen/massacantus.md index 35d49c8..3cc0f58 100644 --- a/content/verenigingen/mcantus.md +++ b/content/verenigingen/massacantus.md @@ -1,5 +1,5 @@ --- titel: Massacantus naam: Massacantus -konvent: mcantus ---- \ No newline at end of file +konvent: massacantus +--- diff --git a/content/verenigingen/temp.md b/content/verenigingen/temp.md index 7079b82..041fbe0 100644 --- a/content/verenigingen/temp.md +++ b/content/verenigingen/temp.md @@ -2,7 +2,7 @@ titel: Temp naam: Temp tags: tem,p -konvent: tk +konvent: TempConvent bestuur: - functie: Voorzitter naam: /tmp diff --git a/layouts/partials/detail.erb b/layouts/partials/detail.erb index 73e5ef8..f4b1d27 100644 --- a/layouts/partials/detail.erb +++ b/layouts/partials/detail.erb @@ -1,5 +1,5 @@
<% if item[:deelname_link] %> @@ -51,4 +51,4 @@
<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/layouts/verenigingen.erb b/layouts/verenigingen.erb index 7b08cab..36fe47b 100644 --- a/layouts/verenigingen.erb +++ b/layouts/verenigingen.erb @@ -9,7 +9,7 @@

Konventen en projecten

diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb index 7ee4de9..4618663 100644 --- a/lib/helpers/verenigingen.rb +++ b/lib/helpers/verenigingen.rb @@ -19,4 +19,7 @@ module VerenigingenHelper "themas" => x[:themas] }}.to_a end + def abbreviation(item) + item.identifier.without_ext.split('/')[2] + end end