Przeglądaj źródła

make links work to go to revisions and links extracted from the page

Damien ACCORSI 9 lat temu
rodzic
commit
7f40b00a28

+ 6 - 0
tracim/tracim/templates/master_authenticated.mak Wyświetl plik

@@ -13,6 +13,12 @@
13 13
         <link href="${tg.url('/assets/css/bootstrap.min.css')}" rel="stylesheet">
14 14
         <link href="${tg.url('/assets/css/dashboard.css')}" rel="stylesheet">
15 15
         <link href="${tg.url('/assets/font-awesome-4.2.0/css/font-awesome.css')}" rel="stylesheet">
16
+
17
+        <script>
18
+            var shiftWindow = function() { scrollBy(0, -50) };
19
+            window.addEventListener("hashchange", shiftWindow);
20
+            function load() { if (window.location.hash) shiftWindow(); }
21
+        </script>
16 22
     </head>
17 23
 
18 24
     <body class="${self.body_class()}">

+ 2 - 2
tracim/tracim/templates/page_toolbars.mak Wyświetl plik

@@ -11,8 +11,8 @@
11 11
     % endif
12 12
     
13 13
     <div class="btn-group btn-group-vertical">
14
-        <a href="#page-versions" role="button" class="btn btn-default" data-toggle="modal" title="${_('View versions of the page')}">${TIM.ICO(32, 'actions/gnome-document-open-recent')}</a>
15
-        <a href="#page-associated-links" role="button" class="btn btn-default" data-toggle="modal" title="${_('View all links')}">${TIM.ICO(32, 'apps/internet-web-browser')}</a>
14
+        <a href="#associated-revisions" role="button" class="btn btn-default" title="${_('View versions of the page')}">${TIM.ICO(32, 'actions/gnome-document-open-recent')}</a>
15
+        <a href="#associated-links" role="button" class="btn btn-default" title="${_('View all links')}">${TIM.ICO(32, 'apps/internet-web-browser')}</a>
16 16
     </div>
17 17
     <p></p>
18 18
     

+ 1 - 1
tracim/tracim/templates/user_workspace_folder_file_get_one.mak Wyświetl plik

@@ -67,7 +67,7 @@ ${WIDGETS.BREADCRUMB('current-page-breadcrumb', fake_api.breadcrumb)}
67 67
     <div class="col-md-6">
68 68
         <table class="table table-hover table-condensed table-striped table-bordered">
69 69
             <tr>
70
-                <td class="tracim-title">${_('Name')}</td>
70
+                <td class="tracim-title">${_('File')}</td>
71 71
                 <td>
72 72
                     <a href="${download_url}" tittle="${_('Download the file (last revision)')}">
73 73
                         ${result.file.file.name}

+ 2 - 2
tracim/tracim/templates/user_workspace_folder_page_get_one.mak Wyświetl plik

@@ -76,8 +76,8 @@ ${WIDGETS.BREADCRUMB('current-page-breadcrumb', fake_api.breadcrumb)}
76 76
     </div>
77 77
     <hr class="tracim-panel-separator"/>
78 78
 
79
-
80
-    <h4 id="associated-links" class="anchored-title" >${_('Page revisions')}</h4>
79
+    <span id="associated-revisions" ></span>
80
+    <h4 class="anchored-title">${_('Page revisions')}</h4>
81 81
     <div>
82 82
         <table class="table table-striped table-hover">
83 83
             % for revid, revision in reversed(list(enumerate(reversed(result.page.revisions)))):