diff options
author | James Moger <james.moger@gitblit.com> | 2013-10-24 23:44:11 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-10-25 08:39:56 -0400 |
commit | a7317acec01cde855a9f9f3d2da3dcc49d89aa86 (patch) | |
tree | 11795f77b74e7c642b7b916e84e5306bdcfd83e9 /src/main/java/com/gitblit/wicket/pages/DocsPage.html | |
parent | ab1e1148ba6ec2a0e53ff54398173204febc9a4a (diff) | |
download | gitblit-a7317acec01cde855a9f9f3d2da3dcc49d89aa86.tar.gz gitblit-a7317acec01cde855a9f9f3d2da3dcc49d89aa86.zip |
Support for intra-Markdown linking using [[WikiLinks]] syntax (issue-324)
All WikiLinks must be specified relative to the root of the repository.
The displayed link text is stripped to just the document name. Spaces in
the document name are replaced with '-' characters; this is consistent with
wiki syntax and Github.
Change-Id: Id3fb1b5441352d9bacc4993a5b85882db113693b
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/DocsPage.html')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/DocsPage.html | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/DocsPage.html b/src/main/java/com/gitblit/wicket/pages/DocsPage.html index ad93000c..7f1e64e0 100644 --- a/src/main/java/com/gitblit/wicket/pages/DocsPage.html +++ b/src/main/java/com/gitblit/wicket/pages/DocsPage.html @@ -6,10 +6,26 @@ <body>
<wicket:extend>
-
- <!-- header -->
+
+<div wicket:id="docs"></div>
+
+<wicket:fragment wicket:id="indexFragment">
+ <ul class="nav nav-tabs">
+ <li class="active"><a data-toggle="tab" href="#home"><wicket:message key="gb.home">[home]</wicket:message></a></li>
+ <li><a data-toggle="tab" href="#pages"><wicket:message key="gb.pages">[pages]</wicket:message></a></li>
+ </ul>
+ <div class="tab-content">
+ <div id="home" wicket:id="index" class="tab-pane active"></div>
+ <div id="pages" wicket:id="documents" class="tab-pane"></div>
+ </div>
+</wicket:fragment>
+
+<wicket:fragment wicket:id="noIndexFragment">
<div style="margin-top:5px;" class="header"><i class="icon-book" style="vertical-align: middle;"></i> <b><span wicket:id="header">[header]</span></b></div>
-
+ <div wicket:id="documents"></div>
+</wicket:fragment>
+
+<wicket:fragment wicket:id="documentsFragment">
<!-- documents -->
<table style="width:100%" class="pretty">
<tr wicket:id="document">
@@ -22,7 +38,8 @@ </span>
</td>
</tr>
- </table>
+ </table>
+</wicket:fragment>
</wicket:extend>
</body>
</html>
\ No newline at end of file |