Commit dabaaa76 by Xavier Antoviaque

Merge pull request #391 from open-craft/eugeny/username-wrapper

Added wrapper around username and labels to allow for nowrap styling
parents cfec8a2e 5f9857f0
......@@ -586,6 +586,7 @@ browser and pasting the output. When that file changes, this one should be rege
</script>
<script aria-hidden="true" type="text/template" id="post-user-display-template">
<span class="username-wrapper">
<% if (username) { %>
<a href="<%- user_url %>" class="username"><%- username %></a>
<% if (is_community_ta) { %>
......@@ -596,5 +597,6 @@ browser and pasting the output. When that file changes, this one should be rege
<% } else { %>
anonymous
<% } %>
</span>
</script>
""")
......@@ -596,6 +596,7 @@ ${secondaryAction("delete", "remove", _("Delete"))}
</script>
<script aria-hidden="true" type="text/template" id="post-user-display-template">
<span class="username-wrapper">
${"<% if (username) { %>"}
<a href="${'<%- user_url %>'}" class="username">${'<%- username %>'}</a>
${"<% if (is_community_ta) { %>"}
......@@ -606,4 +607,5 @@ ${secondaryAction("delete", "remove", _("Delete"))}
${"<% } else { %>"}
${_('anonymous') | h}
${"<% } %>"}
</span>
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment