Showing 1 changed files with 3 additions and 165 deletions
+3 -165
templates/main/tree.html.ep
... ...
@@ -58,176 +58,14 @@
58 58
 %>
59 59
 
60 60
 % layout 'common';
61
-  %= include '/css/common';
62 61
   
63
-  %= javascript begin 
64
-    $(document).ready(function() {
65
-      
66
-      // Repository URL
67
-      var rep_url_bak_color = "#F5F5F5";
68
-      var http_rep_url = "<%= url_for("/$user/$project.git")->to_abs %>";
69
-      var ssh_rep_url
70
-        = "<%= url_for("/$rep_ns")->to_abs->scheme('ssh')->userinfo($user)->port(config->{ssh_port}) %>";
71
-      var git_rep_url = "<%= url_for("/$user/$project.git")->to_abs->scheme('git')->port('') %>";
72
-      $(".git_url_text").val(http_rep_url);
73
-      $(".git_url_http").css("background-color", "darkgray");
74
-      $(".git_url_http").on('click', function () {
75
-        $(".git_url_http").css("background-color", "darkgray");
76
-        $(".git_url_ssh").css("background-color", rep_url_bak_color);
77
-        $(".git_url_git").css("background-color", rep_url_bak_color);
78
-        
79
-        $(".git_url_text").val(http_rep_url);
80
-        $(".git_url_access").text("Read-only access");
81
-      });
82
-      $(".git_url_ssh").on('click', function () {
83
-        $(".git_url_http").css("background-color", rep_url_bak_color);
84
-        $(".git_url_ssh").css("background-color", "darkgray");
85
-        $(".git_url_git").css("background-color", rep_url_bak_color);
86
-        
87
-        $(".git_url_text").val(ssh_rep_url);
88
-        $(".git_url_access").text("Read-Write access");
89
-      });
90
-      $(".git_url_git").on('click', function () {
91
-        $(".git_url_http").css("background-color", rep_url_bak_color);
92
-        $(".git_url_ssh").css("background-color", rep_url_bak_color);
93
-        $(".git_url_git").css("background-color", "darkgray");
94
-        
95
-        $(".git_url_text").val(git_rep_url);
96
-        $(".git_url_access").text("Read-Only access");
97
-      });
98
-      
99
-    });
100
-  % end
101
-  
102
-  %= stylesheet begin
103
-    
104
-    /* Repository description */
105
-    .description {
106
-      padding:10px;
107
-      border:1px solid gray;
108
-      margin-top:-1px;
109
-    }
110
-    
111
-    /* Git URL */
112
-    .git_url {
113
-      border: 1px solid gray;
114
-      padding: 10px;
115
-      margin-top:-1px;
116
-      font-size:80%;
117
-    }
118
-    .git_url_zip {
119
-      padding:5px;
120
-      float:left;
121
-      border:1px solid gray;
122
-      margin-right:5px;
123
-      background-color:#F5F5F5;
124
-    }
125
-    .git_url_http {
126
-      padding:5px;
127
-      float:left;
128
-      border:1px solid gray;
129
-      background-color:#F5F5F5;
130
-    }
131
-    .git_url_ssh {
132
-      padding:5px;
133
-      float:left;
134
-      border:1px solid gray;
135
-      border-left:none;
136
-      background-color:#F5F5F5;
137
-    }
138
-    .git_url_git {
139
-      padding:5px;
140
-      float:left;
141
-      border:1px solid gray;
142
-      border-left:none;
143
-      background-color:#F5F5F5;
144
-    }
145
-    .git_url_text {
146
-      padding:3px;
147
-      float:left;
148
-      border:1px solid gray;
149
-      width:300px;
150
-      margin-right:10px;
151
-      border-left:none;
152
-      display:block;
153
-    }
154
-    .git_url_access {
155
-      padding:5px;
156
-    }
157
-    
158
-    /* Commit number */
159
-    .commit_number {
160
-      font-size:120%;
161
-    }
162
-    .commit_number_left {
163
-      width:700px;
164
-      float:left;
165
-    }
166
-    .commit_number_right {
167
-      text-align:right;
168
-    }
169
-    
170
-    /* README */
171
-    .readme {
172
-      width:100%;
173
-      margin: 5px auto;
174
-      border:2px solid gray;
175
-      margin-top:30px;
176
-      line-height:1.5em;
177
-    }
178
-    .readme_title {
179
-      border-bottom:1px solid gray;
180
-      font-size:130%;
181
-      font-weight:bold;
182
-      padding:10px;
183
-    }
184
-    .readme_body {
185
-      min-height: 50px;
186
-      font-size:120%;
187
-      padding:30px;
188
-    }
189
-  % end
190
-
191 62
   %= include '/include/header';
192 63
 
193
-  <div class="main_panel">
194
-    %= include '/include/sub_header';
195
-
196
-    <div class="description"><%= $desc %></div>
197
-    
198
-    <div class="git_url">
199
-      <div class="git_url_zip"><a href="<%= url_for('/archive/master.zip') %>"><s>ZIP</s></a></div>
200
-      <div class="git_url_http">HTTP</div>
201
-      <div class="git_url_ssh">SSH</div>
202
-      <div class="git_url_git">Git Read-Only</div>
203
-      <input type="text" class="git_url_text">
204
-      <div class="git_url_access">Read-only access</div>
205
-    </div>
206
-    
207
-    %= include '/include/code_menu';
208
-    %= stylesheet begin
209
-      /* Code menu */
210
-      .code_menu_files {
211
-        border:1px solid #E5E5E5;
212
-        border-bottom:none;
213
-        background-color:white;
214
-        font-weight:bold;
215
-      }
216
-      .code_menu_files a {
217
-        color:#333
218
-      }
219
-    % end
220
-        
64
+  <div class="container">
65
+    %= include '/include/project_header';
66
+    %= include '/include/code_menu', display => 'files';
221 67
     %= include '/include/page_path', type => 'tree', Path => $dir;
222
-
223 68
     %= include '/include/tree';
224
-    
225
-    % if ($top) {
226
-      <div class="readme">
227
-        <div class="readme_title">README</div>
228
-        <div class="readme_body"><pre><%= $readme %></pre></div>
229
-      </div>
230
-    % }
231 69
   </div>
232 70
   
233 71
   %= include '/include/footer';