Skip to content

Commit

Permalink
Merge pull request #186 from USEPA/IN-521a
Browse files Browse the repository at this point in the history
updated field permission and twig template
  • Loading branch information
johnrockweilercgi authored Aug 3, 2021
2 parents 75178ba + 595e31d commit bbb84eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/sync/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ permissions:
- 'access site-wide contact form'
- 'access user profiles'
- 'never autoplay videos'
- 'view field_official_portrait_link'
- 'view media'
- 'view own field_official_portrait_link'
- 'view published path file entity entities'
4 changes: 2 additions & 2 deletions config/sync/views.view.staff_official_portraits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ display:
empty_zero: false
hide_alter_empty: true
click_sort_column: uri
type: link
type: link_separate
settings:
trim_length: 80
trim_length: null
url_only: false
url_plain: false
rel: '0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
{% endif %}
<div class="align-center"><strong>{{ fields.title.content }}</strong></div>
<div class="align-center"><span class="small"> {{ fields.field_staff_position.content }} </span></div>
<div class="align-center"> <span class="small"><a href="{{ fields.field_official_portrait_link.0.url }}">Download</a> </span></div>
<div class="align-center"> <span class="small">
<a href="{{ fields.field_official_portrait_link.content|striptags|trim }}">Download Portrait</a><br>
</span></div>
</div>
</div>

0 comments on commit bbb84eb

Please sign in to comment.