Showing 3 changed files with 33 additions and 25 deletions
+9
public/css/bootstrap.css
... ...
@@ -1640,3 +1640,12 @@ button.close {
1640 1640
   margin-left:5px;
1641 1641
   font-weight:bold;
1642 1642
 }
1643
+
1644
+.page-path {
1645
+  display:inline-block;
1646
+  margin-left:5px;
1647
+}
1648
+
1649
+.branch-select-left-container-page-path {
1650
+  width:100%;
1651
+}
+23 -24
templates/include/branch_select.html.ep
... ...
@@ -128,39 +128,38 @@
128 128
 % end
129 129
 
130 130
 <div class="branch-select-container">
131
-  <div class="branch-select-left-container">
131
+  <div class="branch-select-left-container branch-select-left-container-page-path">
132 132
     <button id="rev-btn" class="btn btn-small">
133 133
       <span><%= $title %>:</span> <b><%= $rev_short %></b> <i class="icon-arrow-down"></i>
134 134
     </button>
135
+    % if ($display eq 'tree' || $display eq 'blob') {
136
+        %= include '/include/page_path', Path => $path;
137
+    % }
135 138
   </div>
136
-  <div class="branch-select-right-container">
137 139
     % if ($display eq 'tree_top') {
138
-      <ul class="git-url-container">
139
-        % if ($logined) {
140
+      <div class="branch-select-right-container">
141
+        <ul class="git-url-container">
142
+          % if ($logined) {
143
+            <li>
144
+              <button class="btn btn-small btn-info" id="btn_ssh">SSH</button>
145
+            </li>
146
+          % }
140 147
           <li>
141
-            <button class="btn btn-small btn-info" id="btn_ssh">SSH</button>
148
+            <button class="btn btn-small <%= !$logined ? 'btn-info' : '' %>" id="btn_http"><%= $self->req->is_secure ? 'HTTPS' : 'HTTP' %></button>
142 149
           </li>
143
-        % }
144
-        <li>
145
-          <button class="btn btn-small <%= !$logined ? 'btn-info' : '' %>" id="btn_http"><%= $self->req->is_secure ? 'HTTPS' : 'HTTP' %></button>
146
-        </li>
147
-        <li>
148
-          <input id="rep_url" type="text">
149
-        </li>
150
-        <li>
151
-          <div class="donwload-zip">
152
-            <a class="btn btn-small" href="<%= url_for("/$user/$project/archive/$rev.zip") %>">
153
-              Download ZIP
154
-            </a>
155
-          </div>
156
-        </li>
157
-      </ul>
158
-    % } elsif ($display eq 'tree' || $display eq 'blob') {
159
-      <div class="page-path-container">
160
-        %= include '/include/page_path', Path => $path;
150
+          <li>
151
+            <input id="rep_url" type="text">
152
+          </li>
153
+          <li>
154
+            <div class="donwload-zip">
155
+              <a class="btn btn-small" href="<%= url_for("/$user/$project/archive/$rev.zip") %>">
156
+                Download ZIP
157
+              </a>
158
+            </div>
159
+          </li>
160
+        </ul>
161 161
       </div>
162 162
     % }
163
-  </div>
164 163
 </div>
165 164
 
166 165
 <div style="position:relative">
+1 -1
templates/include/page_path.html.ep
... ...
@@ -10,7 +10,7 @@
10 10
   my $type = stash('type') || '';
11 11
 %>
12 12
 
13
-<div style="margin-bottom:10px;font-size:16px;display:inline-block;padding-top:3px;">
13
+<div class="page-path">
14 14
   % if ($prefix) {
15 15
     <span class="muted">History for</span>
16 16
   % }