Skip to content

Commit

Permalink
Check for deleted records
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohutai committed Feb 21, 2018
1 parent 12da332 commit fa1a682
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/backend/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
{% setcontent record = "#{contenttype}/#{contentid}" %}
<tr>
<td>
<a href="{{ path('is_useful.view', { id: item.id }) }}" title="View detailed feedback for this page">{{ record.title}}</a>
<a href="{{ path('is_useful.view', { id: item.id }) }}" title="View detailed feedback for this page">
{{ record.title|default('(Untitled)') }}
</a>
</td>
<td>{{ totalsNo }}</td>
<td>{{ percentageNo|number_format(0,'.','') }}%</td>
Expand Down
6 changes: 4 additions & 2 deletions templates/backend/unread.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
{% set deleteLink = path('is_useful.feedback.delete', { id: item.id }) %}
{% set statusReadLink = path('is_useful.feedback.status', { id: item.id, status: 'read' }) %}
{% set statusDoneLink = path('is_useful.feedback.status', { id: item.id, status: 'done' }) %}
{% set viewLink = item.is_useful_id is not empty ? path('is_useful.view', { id: item.is_useful_id }) : '' %}

<tr>
{% setcontent record = "#{item.contenttype}/#{item.contentid}" %}
<td class="is-useful">
<a href="{{ path('is_useful.view', { id: item.is_useful_id }) }}" title="View detailed feedback for this page">
{{ record.title }}
<a href="{{ viewLink }}" title="View detailed feedback for this page">
{{ record.title|default('(Untitled)') }}
</a>
</td>
<td class="is-useful-ip">{{ ip }}</td>
Expand Down

0 comments on commit fa1a682

Please sign in to comment.