Skip to content

Commit

Permalink
feat: link to public page of body when viewing body from detailed ove…
Browse files Browse the repository at this point in the history
…rview

Does not work properly for abrogated bodies that share their abbreviation with
newer bodies, see GH-1925.
  • Loading branch information
tomudding committed Nov 29, 2024
1 parent a8e1505 commit 84e73b0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
7 changes: 5 additions & 2 deletions module/Application/language/en.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions module/Application/language/gewisweb.pot

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions module/Application/language/nl.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion module/Decision/view/decision/organ/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ $this->headTitle($organ->getName());
<section class="section">
<div class="container">
<div class="row">
<h1><?= $this->escapeHtml($organ->getName()) ?> (<?= $this->escapeHtml($organ->getAbbr()) ?>)</h1>
<div class="page-header">
<div class="btn-toolbar pull-right">
<a href="<?= $this->url(
'home/organ',
[
'abbr' => $organ->getAbbr(),
'type' => $organ->getType()->value,
],
) ?>" class="btn btn-default">
<span class="fas fa-share-nodes"></span> <?= $this->translate('Go to public page') ?>
</a>
</div>
<h1><?= $this->escapeHtml($organ->getName()) ?> <small>(<?= $this->escapeHtml($organ->getAbbr()) ?>)</small></h1>
</div>
<div class="col-md-4">
<?php if (!empty($activeMembers)): ?>
<h2><?= $this->translate('Active members') ?></h2>
Expand Down

0 comments on commit 84e73b0

Please sign in to comment.