Skip to content

Commit 6f6f082

Browse files
committed
Don't show copy link for 'Hauptsachgebiete' (ending in 0000) #675
1 parent 3f204af commit 6f6f082

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/views/tags/browse_list.scala.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ <h4 class="modal-title" id="label-@matches.hashCode">Links für @Html(entryLabel
115115
</div>
116116
</div>
117117
}
118-
@if(t!="Zeitschriften"){<span @if(t!="Wikidata"){class='copy-link'}><a data-toggle="tooltip" data-placement="right" title="Identifikator und Bezeichnung in die Zwischenablage kopieren" href="#" onclick="copyToClipboard('@textToCopy', $(this));return false;"><span class="octicon octicon-clippy"></span></a></span>}
118+
@if(t!="Zeitschriften" && !textToCopy.matches(".+0000$")){
119+
<span @if(t!="Wikidata"){class='copy-link'}>
120+
<a data-toggle="tooltip" data-placement="right" title="Identifikator und Bezeichnung in die Zwischenablage kopieren" href="#" onclick="copyToClipboard('@textToCopy', $(this));return false;">
121+
<span class="octicon octicon-clippy"></span>
122+
</a>
123+
</span>
124+
}
119125
<div style="display: none">@normalized @altLabel @example</div>
120126
}
121127
@if(t=="Wikidata"){

0 commit comments

Comments
 (0)