You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by sh...@apache.org on 2019/08/18 07:03:55 UTC
[allura] 01/01: [#8324] Add new user mentions feature to the
formatting guide
This is an automated email from the ASF dual-hosted git repository.
shalithasuranga pushed a commit to branch ss/8324
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 80ebb0bef8e052d633fa34e36d9ea869c5098ad9
Author: Shalitha Suranga <sh...@gmail.com>
AuthorDate: Sun Aug 18 12:33:34 2019 +0530
[#8324] Add new user mentions feature to the formatting guide
---
Allura/allura/templates/jinja_master/lib.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Allura/allura/templates/jinja_master/lib.html b/Allura/allura/templates/jinja_master/lib.html
index 27a7288..0a85183 100644
--- a/Allura/allura/templates/jinja_master/lib.html
+++ b/Allura/allura/templates/jinja_master/lib.html
@@ -239,6 +239,7 @@
<li><a href="#md_ex_links{{id}}">Links</a></li>
<li><a href="#md_ex_reflinks{{id}}">Reference Links</a></li>
<li><a href="#md_ex_artlinks{{id}}">Artifact Links</a></li>
+ <li><a href="#md_ex_usermentions{{id}}">User Mentions</a></li>
<li><a href="#md_ex_text{{id}}">Basic Text Formatting</a></li>
<li><a href="#md_ex_bq{{id}}">Blockquotes</a></li>
<li><a href="#md_ex_pre{{id}}">Preformatted Text</a></li>
@@ -364,6 +365,15 @@ as it appears in the URL. For example:</p>
</pre></div><br>
</div>
+
+<div class="markdown_syntax_section hidden_in_modal md_ex_usermentions{{id}}">
+ <h2 id="md_ex_usermentions{{id}}">User Mentions</h2>
+ <p>An user can be mentioned using @ sign and the username. A rendered user mention has a link to the particular user and also an info tip on mouse hover.</p>
+ <div class="codehilite"><pre>
+ @test-user-1 # Mention test-user-1
+ </pre></div><br>
+ </div>
+
<div class="markdown_syntax_section hidden_in_modal md_ex_text{{id}}">
<h2 id="md_ex_text{{id}}">Basic Text Formatting</h2>
<p>Use * or _ to emphasize things:</p>