-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Don't show empty braces in link list in dashboard if a news…
…letter is deleted Instead show a message that this link was used in a deleted newsletter.
- Loading branch information
1 parent
901b744
commit 76b6655
Showing
3 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 24 additions & 16 deletions
40
Resources/Private/Partials/Newsletter/Dashboard/Links.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
Links | ||
</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<ul class="list-group"> | ||
<f:for each="{groupedLinksByHref}" as="groupedLink"> | ||
<li class="list-group-item"> | ||
<span class="badge" style="float: right;" title="Overall">{groupedLink.count}</span> | ||
<f:link.external uri="{groupedLink.target}">{groupedLink.target}</f:link.external> | ||
<br>({groupedLink.newsletter.title}) | ||
</li> | ||
</f:for> | ||
</ul> | ||
</div> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
Links | ||
</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<ul class="list-group"> | ||
<f:for each="{groupedLinksByHref}" as="groupedLink"> | ||
<li class="list-group-item"> | ||
<span class="badge" style="float: right;" title="Overall">{groupedLink.count}</span> | ||
<f:link.external uri="{groupedLink.target}">{groupedLink.target}</f:link.external> | ||
<br> | ||
<f:if condition="{groupedLink.newsletter}"> | ||
<f:then> | ||
{groupedLink.newsletter.title} | ||
</f:then> | ||
<f:else> | ||
(<f:translate key="LLL:EXT:luxletter/Resources/Private/Language/locallang.xlf:deletednewsletter">Deleted Newsletter</f:translate>) | ||
</f:else> | ||
</f:if> | ||
</li> | ||
</f:for> | ||
</ul> | ||
</div> | ||
</div> |