Pārlūkot izejas kodu

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

Damien ACCORSI 10 gadus atpakaļ
vecāks
revīzija
7f40b00a28

+ 6 - 0
tracim/tracim/templates/master_authenticated.mak Parādīt failu

13
         <link href="${tg.url('/assets/css/bootstrap.min.css')}" rel="stylesheet">
13
         <link href="${tg.url('/assets/css/bootstrap.min.css')}" rel="stylesheet">
14
         <link href="${tg.url('/assets/css/dashboard.css')}" rel="stylesheet">
14
         <link href="${tg.url('/assets/css/dashboard.css')}" rel="stylesheet">
15
         <link href="${tg.url('/assets/font-awesome-4.2.0/css/font-awesome.css')}" rel="stylesheet">
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
     </head>
22
     </head>
17
 
23
 
18
     <body class="${self.body_class()}">
24
     <body class="${self.body_class()}">

+ 2 - 2
tracim/tracim/templates/page_toolbars.mak Parādīt failu

11
     % endif
11
     % endif
12
     
12
     
13
     <div class="btn-group btn-group-vertical">
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
     </div>
16
     </div>
17
     <p></p>
17
     <p></p>
18
     
18
     

+ 1 - 1
tracim/tracim/templates/user_workspace_folder_file_get_one.mak Parādīt failu

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

+ 2 - 2
tracim/tracim/templates/user_workspace_folder_page_get_one.mak Parādīt failu

76
     </div>
76
     </div>
77
     <hr class="tracim-panel-separator"/>
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
     <div>
81
     <div>
82
         <table class="table table-striped table-hover">
82
         <table class="table table-striped table-hover">
83
             % for revid, revision in reversed(list(enumerate(reversed(result.page.revisions)))):
83
             % for revid, revision in reversed(list(enumerate(reversed(result.page.revisions)))):