gitprep / templates / settings.html.ep /
Newer Older
452 lines | 14.778kb
setting page
Yuki Kimoto authored on 2013-03-24
1
<%
add create repository tests
Yuki Kimoto authored on 2013-05-19
2
  # API
added description changed fe...
Yuki Kimoto authored on 2013-03-24
3
  my $api = gitprep_api;
revert encoding support
Yuki Kimoto authored on 2013-11-22
4
  my $manager = app->manager;
add create repository tests
Yuki Kimoto authored on 2013-05-19
5
  
6
  # Parameters
added description changed fe...
Yuki Kimoto authored on 2013-03-24
7
  my $op = param('op') || '';
fix setting page
Yuki Kimoto authored on 2016-04-21
8
  my $user_id = param('user') || '';
9
  my $user_row_id = $api->get_user_row_id($user_id);
10
  my $project_id = param('project');
added description changed fe...
Yuki Kimoto authored on 2013-03-24
11
  
add create repository tests
Yuki Kimoto authored on 2013-05-19
12
  # Authentication
fix setting page
Yuki Kimoto authored on 2016-04-21
13
  unless ($api->logined($user_id)) {
add create repository tests
Yuki Kimoto authored on 2013-05-19
14
    $self->redirect_to('/');
cleanup
Yuki Kimoto authored on 2013-05-13
15
    return;
16
  }
added description changed fe...
Yuki Kimoto authored on 2013-03-24
17
  
add create repository tests
Yuki Kimoto authored on 2013-05-19
18
  # Rename project
revert encoding support
Yuki Kimoto authored on 2013-11-22
19
  my $git = app->git;
simplify rename project
Yuki Kimoto authored on 2013-05-22
20
  my $errors;
cleanup settings
Yuki Kimoto authored on 2016-03-31
21
  if (lc $self->req->method eq 'post') {
22
    if ($op eq 'rename-project') {
23
      
24
      # Parameters
25
      my $to_project = param('to-project');
26
      
27
      # Validator
28
      my $vc = app->vc;
29
      
30
      # Validation result
31
      my $validation = $vc->validation;
32
      
33
      # "to-project" check
34
      if (!(defined $to_project && length $to_project)) {
35
        $validation->add_failed('to-project' => 'Repository name is empty.');
36
      }
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
37
      elsif (length $to_project > 300) {
38
        $validation->add_failed('to-project' => 'Repository name is too long.');
39
      }
cleanup settings
Yuki Kimoto authored on 2016-03-31
40
      elsif (!$vc->check($to_project, 'project_name')) {
41
        $validation->add_failed('to-project' => 'Repository name contains invalid charactor.');
42
      }
fix setting page
Yuki Kimoto authored on 2016-04-21
43
      elsif (app->manager->exists_project($user_id, $to_project)) {
cleanup settings
Yuki Kimoto authored on 2016-03-31
44
        $validation->add_failed('to-project' => "$to_project is already exists");
45
      }
46
      
47
      if ($validation->is_valid) {
48
        # Rename
fix setting page
Yuki Kimoto authored on 2016-04-21
49
        eval { app->manager->rename_project($user_id, $project_id, $to_project) };
cleanup settings
Yuki Kimoto authored on 2016-03-31
50
        if (my $e = $@) {
51
          app->log->error($e);
52
          $errors = ['Internal Error'];
53
        }
54
        else {
55
          flash(message => "Repository name is renamed to $to_project");
fix setting page
Yuki Kimoto authored on 2016-04-21
56
          $self->redirect_to("/$user_id/$to_project/settings");
cleanup settings
Yuki Kimoto authored on 2016-03-31
57
          return;
58
        }
59
      }
60
      else { $errors = $validation->messages }
cleanup setting validation
Yuki Kimoto authored on 2016-02-09
61
    }
62
    
cleanup settings
Yuki Kimoto authored on 2016-03-31
63
    # Change description
64
    elsif ($op eq 'change-description') {
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
65
      
66
      # Parameters
cleanup settings
Yuki Kimoto authored on 2016-03-31
67
      my $description = param('description');
68
      $description = '' unless defined $description;
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
69
 
70
      # Validator
71
      my $vc = app->vc;
72
      
73
      # Validation result
74
      my $validation = $vc->validation;
cleanup settings
Yuki Kimoto authored on 2016-03-31
75
      
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
76
      if (length $description > 300) {
77
        $validation->add_failed(description => 'description is too long');
added project rename feature
Yuki Kimoto authored on 2013-03-25
78
      }
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
79
      
80
      if ($validation->is_valid) {
81
        eval { $git->description(app->rep_info($user_id, $project_id), $description) };
82
        if (my $e = $@) {
83
          app->log->error("/$user_id/$project_id/settings?op=description: $e");
84
          $errors = ['Internal Error'];
85
        }
86
        else {
add website URL settings. yo...
Yuki Kimoto authored on 2016-08-17
87
          flash(message => 'Description is changed.');
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
88
          $self->redirect_to('current');
89
          return;
90
        }
added project rename feature
Yuki Kimoto authored on 2013-03-25
91
      }
92
    }
add website URL settings. yo...
Yuki Kimoto authored on 2016-08-17
93

            
94
    # Change website URL
95
    elsif ($op eq 'change-website-url') {
96
      
97
      # Parameters
98
      my $website_url = param('website-url');
99
      $website_url = '' unless defined $website_url;
100
 
101
      # Validator
102
      my $vc = app->vc;
103
      
104
      # Validation result
105
      my $validation = $vc->validation;
106
      
107
      if (length $website_url > 300) {
108
        $validation->add_failed('website-url' => 'Website URL is too long');
109
      }
110
      
111
      if ($validation->is_valid) {
112
        app->dbi->model('project')->update(
113
          {website_url => $website_url},
114
          where => {user => $user_row_id, id => $project_id}
115
        );
116
        
117
        flash(message => 'Website URL is changed.');
118
        $self->redirect_to('current');
119
        return;
120
      }
121
    }
cleanup change default branc...
Yuki Kimoto authored on 2016-03-31
122
    
cleanup settings
Yuki Kimoto authored on 2016-03-31
123
    # Change default branch
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
124
    elsif ($op eq 'save-settings') {
125
      
126
      # Parameters
cleanup settings
Yuki Kimoto authored on 2016-03-31
127
      my $default_branch = param('default-branch');
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
128
      my $private = param('private');
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
129
      my $ignore_space_change = param('ignore_space_change');
add guess_encoding column an...
Yuki Kimoto authored on 2016-04-05
130
      my $guess_encoding = param('guess_encoding');
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
131

            
132
      # Validator
133
      my $vc = app->vc;
134
      
135
      # Validation result
136
      my $validation = $vc->validation;
137
      
138
      # Check default branch
fix warnings
Yuki Kimoto authored on 2016-06-11
139
      if (defined $default_branch && length $default_branch > 300) {
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
140
        $validation->add_failed('default-branch' => 'default branch is too long');
141
      }
142
      
143
      # Check private
144
      $private = $private ? 1 : 0;
145
      
146
      # Check ignore space change
147
      $ignore_space_change = $ignore_space_change ? 1 : 0;
148
      
149
      # Check guess encoding
150
      $guess_encoding //= '';
151
      if (length $guess_encoding > 300) {
152
        $validation->add_failed(guess_encoding => 'guess_encoding is too long');
153
      }
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
154
      
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
155
      my $params = {};
156
      if (defined $default_branch) {
157
        $params->{default_branch} = $default_branch;
158
      }
159
      if (defined $private) {
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
160
        $params->{private} = $private;
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
161
      };
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
162
      if (defined $ignore_space_change) {
add validation to settings p...
Yuki Kimoto authored on 2016-05-04
163
        $params->{ignore_space_change} = $ignore_space_change;
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
164
      }
add guess_encoding column an...
Yuki Kimoto authored on 2016-04-05
165
      if (defined $guess_encoding) {
166
        $params->{guess_encoding} = $guess_encoding;
167
      }
cleanup settings
Yuki Kimoto authored on 2016-03-31
168
      
169
      my $dbi = app->dbi;
170
      eval {
171
        $dbi->model('project')->update(
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
172
          $params,
fix setting page
Yuki Kimoto authored on 2016-04-21
173
          where => {user => $user_row_id, id => $project_id}
cleanup settings
Yuki Kimoto authored on 2016-03-31
174
        );
175
      };
176
      
177
      if (my $e = $@) {
fix setting page
Yuki Kimoto authored on 2016-04-21
178
        app->log->error("/$user_id/$project_id/settings?op=save-settings: $e");
cleanup settings
Yuki Kimoto authored on 2016-03-31
179
        $errors = ['Internal Error'];
180
      }
181
      else {
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
182
        flash(message => "Settings is saved");
cleanup settings
Yuki Kimoto authored on 2016-03-31
183
        $self->redirect_to('current');
184
        return;
185
      }
add private checkbox
Yuki Kimoto authored on 2013-11-16
186
    }
added project delete feature
Yuki Kimoto authored on 2013-03-24
187
    
cleanup settings
Yuki Kimoto authored on 2016-03-31
188
    # Delete project
189
    elsif ($op eq 'delete-project') {
190
      
fix setting page
Yuki Kimoto authored on 2016-04-21
191
      my $user_id = param('user');
192
      my $project_id = param('project');
cleanup settings
Yuki Kimoto authored on 2016-03-31
193
      
fix setting page
Yuki Kimoto authored on 2016-04-21
194
      eval { app->manager->delete_project($user_id, $project_id) };
cleanup settings
Yuki Kimoto authored on 2016-03-31
195
      if (my $e = $@) {
fix setting page
Yuki Kimoto authored on 2016-04-21
196
        app->log->error("/$user_id/$project_id/settings: $e");
cleanup settings
Yuki Kimoto authored on 2016-03-31
197
        $errors = ['Internal Error'];
198
      }
199
      else {
fix setting page
Yuki Kimoto authored on 2016-04-21
200
        flash(message => "Repository $project_id is deleted.");
201
        $self->redirect_to("/$user_id");
cleanup settings
Yuki Kimoto authored on 2016-03-31
202
        return;
203
      }
added project delete feature
Yuki Kimoto authored on 2013-03-24
204
    }
205
  }
setting page
Yuki Kimoto authored on 2013-03-24
206
%>
207

            
add title
Yuki Kimoto authored on 2013-06-12
208
% layout 'common', title => 'Options';
setting page
Yuki Kimoto authored on 2013-03-24
209
  
added description changed fe...
Yuki Kimoto authored on 2013-03-24
210
  %= javascript begin
added project delete feature
Yuki Kimoto authored on 2013-03-24
211
    
added description changed fe...
Yuki Kimoto authored on 2013-03-24
212
    $(document).ready(function () {
added project delete feature
Yuki Kimoto authored on 2013-03-24
213
    
simplify rename project
Yuki Kimoto authored on 2013-05-22
214
      // Rename project
added project rename feature
Yuki Kimoto authored on 2013-03-25
215
      $('#rename').on('click', function () {
simplify rename project
Yuki Kimoto authored on 2013-05-22
216
        $('#form-rename-project').submit();
added description changed fe...
Yuki Kimoto authored on 2013-03-24
217
      });
added default branch change ...
Yuki Kimoto authored on 2013-05-22
218

            
added project delete feature
Yuki Kimoto authored on 2013-03-24
219
      // Check matching deleted project
220
      $('input[name="deleted-project"]').on('keyup', function () {
221
        var deleted_project = $(this).val();
fix setting page
Yuki Kimoto authored on 2016-04-21
222
        var project = "<%= $project_id %>";
added project delete feature
Yuki Kimoto authored on 2013-03-24
223
        
224
        if (deleted_project == project) {
225
          $('#delete').attr('class', 'btn btn-danger')
226
            .removeAttr('disabled');
227
        }
228
        else {
229
          $('#delete').attr('class', 'btn btn-danger disabled')
230
            .attr('disabled', 'disabled');
231
        }
232
      });
added default branch change ...
Yuki Kimoto authored on 2013-05-22
233
            
added project delete feature
Yuki Kimoto authored on 2013-03-24
234
      // Delete project
235
      $('#delete').on('click', function () {
simplify delete project
Yuki Kimoto authored on 2013-05-23
236
        $('#form-delete-project').submit();
added project delete feature
Yuki Kimoto authored on 2013-03-24
237
      });
added description changed fe...
Yuki Kimoto authored on 2013-03-24
238
    });
239
  % end
240
  
setting page
Yuki Kimoto authored on 2013-03-24
241
  %= include '/include/header';
242
  
243
  <div class="container">
simplify rename project
Yuki Kimoto authored on 2013-05-22
244
    %= include '/include/errors', errors => $errors;
245
    %= include '/include/message', message => flash('message');
setting page
Yuki Kimoto authored on 2013-03-24
246
    
improve settings page design
Yuki Kimoto authored on 2016-01-18
247
    <div class="project-settings">
248
      <div class="left">
249
        <ul>
250
          <li><b>Options</b></li>
fix setting page
Yuki Kimoto authored on 2016-04-21
251
          <li><a href="<%= url_for("/$user_id/$project_id/settings/collaboration") %>">Collaborators</a></li>
add collaboration page
Yuki Kimoto authored on 2013-11-17
252
        </ul>
setting page
Yuki Kimoto authored on 2013-03-24
253
      </div>
improve settings page design
Yuki Kimoto authored on 2016-01-18
254
      <div class="right">
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
255

            
improve settings page design
Yuki Kimoto authored on 2016-01-18
256
        <ul class="project-settings-main">
257
          <li>
add collaboration page
Yuki Kimoto authored on 2013-11-17
258
            <h4>
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
259
              Repository name
add collaboration page
Yuki Kimoto authored on 2013-11-17
260
            </h4>
improve settings page design
Yuki Kimoto authored on 2016-01-18
261
          </li>
262
          <li>
263
            <form id="form-rename-project" action="<%= url_for->query(op => 'rename-project') %>" method="post">
add collaboration page
Yuki Kimoto authored on 2013-11-17
264
              <div>
fix setting page
Yuki Kimoto authored on 2016-04-21
265
                %= text_field 'to-project' => $project_id, style => "width:80%";
add collaboration page
Yuki Kimoto authored on 2013-11-17
266
                <a href="#rename-confirm" role="button" class="btn" data-toggle="modal">
267
                  Rename
268
                </a>
269
              </div>
270
            </form>
improve settings page design
Yuki Kimoto authored on 2016-01-18
271
          </li>
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
272
        </ul>
setting description is separ...
Yuki Kimoto authored on 2016-03-31
273

            
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
274
        <ul class="project-settings-main">
275
          <li>
276
            <h4>
setting description is separ...
Yuki Kimoto authored on 2016-03-31
277
              Description
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
278
            </h4>
279
          </li>
improve settings page design
Yuki Kimoto authored on 2016-01-18
280
          <li>
281
            <form action="<%= url_for->query(op => 'change-description') %>" method="post">
add collaboration page
Yuki Kimoto authored on 2013-11-17
282
              <div>
fix setting page
Yuki Kimoto authored on 2016-04-21
283
                % my $description = $git->description(app->rep_info($user_id, $project_id));
add collaboration page
Yuki Kimoto authored on 2013-11-17
284
                % $description = '' unless defined $description;
setting description is separ...
Yuki Kimoto authored on 2016-03-31
285
                %= text_field 'description' => $description, style => "width:90%";
add collaboration page
Yuki Kimoto authored on 2013-11-17
286
                <input type="submit" class="btn" value="Save">
287
              </div>
288
            </form>
improve settings page design
Yuki Kimoto authored on 2016-01-18
289
          </li>
setting description is separ...
Yuki Kimoto authored on 2016-03-31
290
        </ul>
add website URL settings. yo...
Yuki Kimoto authored on 2016-08-17
291

            
292
        <ul class="project-settings-main">
293
          <li>
294
            <h4>
295
              Website URL
296
            </h4>
297
          </li>
298
          <li>
299
            <form action="<%= url_for->query(op => 'change-website-url') %>" method="post">
300
              <div>
301
                <%
302
                  my $website_url = app->dbi->model('project')->select('website_url', where => {user => $user_row_id, id => $project_id})->value;
303
                  $website_url = '' unless defined $website_url;
304
                %>
305
                
306
                %= text_field 'website-url' => $website_url, style => "width:90%";
307
                <input type="submit" class="btn" value="Save">
308
              </div>
309
            </form>
310
          </li>
311
        </ul>
setting description is separ...
Yuki Kimoto authored on 2016-03-31
312
        
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
313
        <form id="form-default-branch" action="<%= url_for %>" method="post">
314
          %= hidden_field op => 'save-settings';
315
          <ul class="project-settings-main">
316
            <li>
317
              <h4>
318
                Settings
319
              </h4>
320
            </li>
improve default branch link
Yuki Kimoto authored on 2016-04-12
321
            <li id="default-branch">
add collaboration page
Yuki Kimoto authored on 2013-11-17
322
              Default Branch
improve settings page design
Yuki Kimoto authored on 2016-01-18
323
              <%
fix setting page
Yuki Kimoto authored on 2016-04-21
324
                my $branches = $git->branches($self->app->rep_info($user_id, $project_id));
improve settings page design
Yuki Kimoto authored on 2016-01-18
325
                my $branch_names = [map { $_->{name} } @$branches];
fix setting page
Yuki Kimoto authored on 2016-04-21
326
                my $default_branch = app->manager->default_branch($user_id, $project_id);
improve settings page design
Yuki Kimoto authored on 2016-01-18
327
                push @$branch_names, $default_branch unless @$branch_names;
328
                param('default-branch', $default_branch);
329
              %>
330
              %= select_field 'default-branch' => $branch_names;
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
331
            </li>
332
            <li>
add collaboration page
Yuki Kimoto authored on 2013-11-17
333
              <span>Make this repository private</span>
fix setting page
Yuki Kimoto authored on 2016-04-21
334
              % my $private = app->manager->is_private_project($user_id, $project_id);
335
              % my @private_checked = $private ? (checked => undef) : ();
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
336
              %= hidden_field 'private' => 0;
fix setting page
Yuki Kimoto authored on 2016-04-21
337
              %= check_box 'private' => 1, @private_checked;
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
338
            </li>
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
339
            <li>
340
              <%
341
                my $ignore_space_change = app->dbi->model('project')->select(
342
                  'ignore_space_change',
fix setting page
Yuki Kimoto authored on 2016-04-21
343
                  where => {user => $user_row_id, id => $project_id}
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
344
                )->value;
add guess_encoding column an...
Yuki Kimoto authored on 2016-04-05
345
                my @ignore_space_change_checked = $ignore_space_change ? (checked => undef) : ();
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
346
              %>
347
              <span>Ignore space change in diff</span>
348
              
349
              %= hidden_field 'ignore_space_change' => 0;
add guess_encoding column an...
Yuki Kimoto authored on 2016-04-05
350
              %= check_box 'ignore_space_change' => 1, @ignore_space_change_checked;
351
            </li>
352
            <li>
353
              <%
354
                my $guess_encoding = app->dbi->model('project')->select(
355
                  'guess_encoding',
fix setting page
Yuki Kimoto authored on 2016-04-21
356
                  where => {user => $user_row_id, id => $project_id}
add guess_encoding column an...
Yuki Kimoto authored on 2016-04-05
357
                )->value;
358
              %>
359
              <div>Guess encoding</div>
360
              (Guess encoding from the following encoding list. default is "UTF-8".
361
              if your source code is different from UTF-8, set comma separated encoding list.
362
              For example "cp932,UTF-8")
363
              %= text_field 'guess_encoding' => $guess_encoding;
remove [basic]show_ignore_sp...
Yuki Kimoto authored on 2016-04-02
364
            </li>
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
365
            <li>
add collaboration page
Yuki Kimoto authored on 2013-11-17
366
              <input type="submit" class="btn" value="Save">
cleanup settings page logic
Yuki Kimoto authored on 2016-03-31
367
            </li>
368
          </ul>
369
        </form>
repository name setting is s...
Yuki Kimoto authored on 2016-03-31
370

            
improve settings page design
Yuki Kimoto authored on 2016-01-18
371
        <ul class="project-settings-danger">
372
          <li style="background:red;padding-left:5px">
add collaboration page
Yuki Kimoto authored on 2013-11-17
373
            <h4 style="color:white">Danger Zone</h4>
improve settings page design
Yuki Kimoto authored on 2016-01-18
374
          </li>
375
          <li class="border-gray radius-bottom" style="padding:5px 10px;border-top:none">
add collaboration page
Yuki Kimoto authored on 2013-11-17
376
            <form id="form-delete-project" action="<%= url_for->query(op => 'delete-project') %>" method="post">
377
              <div><b>Delete this repository</b></div>
378
              <span class="muted">
379
                Once you delete a repository, there is no going back.
380
              </span>
381
              <a style="color:red" href="#delete-confirm" role="button" class="btn" data-toggle="modal">
382
                Delete this repository
383
              </a>
fix setting page
Yuki Kimoto authored on 2016-04-21
384
              %= hidden_field user => $user_id;
385
              %= hidden_field project => $project_id;
add collaboration page
Yuki Kimoto authored on 2013-11-17
386
            </form>
improve settings page design
Yuki Kimoto authored on 2016-01-18
387
          </li>
388
        </ul>
simplify delete project
Yuki Kimoto authored on 2013-05-23
389
      </div>
setting page
Yuki Kimoto authored on 2013-03-24
390
    </div>
391
  </div>
392
  
move project delete feature ...
Yuki Kimoto authored on 2013-03-27
393
  <div id="modal-message" class="modal hide">
added description changed fe...
Yuki Kimoto authored on 2013-03-24
394
    <div class="modal-header">
move project delete feature ...
Yuki Kimoto authored on 2013-03-27
395
      <div id="modal-message-text" style="font-weight:bold"></div>
added description changed fe...
Yuki Kimoto authored on 2013-03-24
396
    </div>
397
    <div class="modal-body">
398
      <button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>
399
    </div>
400
  </div>
added project rename feature
Yuki Kimoto authored on 2013-03-25
401

            
402
  <div id="rename-confirm" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="rename-confirm-label" aria-hidden="true">
403
    <div class="modal-header">
revert encoding support
Yuki Kimoto authored on 2013-11-22
404
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
improve settings page design
Yuki Kimoto authored on 2016-01-18
405
      <div style="font-weight:bold;">Are you sure you want to rename?</div>
added project rename feature
Yuki Kimoto authored on 2013-03-25
406
    </div>
407
    <div class="modal-body">
408
      <p>
409
        Unexpected bad things will happen if you don't read this
410
      </p>
411
      <ul>
412
        <li>
413
          We will not set up any redirects from the old location
414
        </li>
415
        <li>
416
          You will need to update your local repositories to point to the new location
417
        </li>
418
      </ul>
419
    </div>
420
    <div class="modal-footer">
421
      <button id="rename" class="btn" data-dismiss="modal" aria-hidden="true">
422
        I understand, rename this repository
423
      </button>
424
    </div>
425
  </div>
426

            
added project delete feature
Yuki Kimoto authored on 2013-03-24
427
  <div id="delete-confirm" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="delete-confirm-label" aria-hidden="true">
428
    <div class="modal-header">
revert encoding support
Yuki Kimoto authored on 2013-11-22
429
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
move project delete feature ...
Yuki Kimoto authored on 2013-03-27
430
      <div style="font-weight:bold">Are you ABSOLUTELY sure?</div>
added project delete feature
Yuki Kimoto authored on 2013-03-24
431
    </div>
432
    <div class="modal-body">
433
      <p>
434
        Unexpected bad things will happen if you don't read this.
435
      </p>
436
      <p>
fix setting page
Yuki Kimoto authored on 2016-04-21
437
        This action <b>CANNOT</b> be undone. This will delete the <b><%= "$user_id/$project_id" %></b>
added project delete feature
Yuki Kimoto authored on 2013-03-24
438
        repository, wiki, issues, and comments permanently.
439
      </p>
440
      <p>
fix setting page
Yuki Kimoto authored on 2016-04-21
441
        Please type in the name of the repository(<b><%= $project_id %></b>) to confirm.
added project delete feature
Yuki Kimoto authored on 2013-03-24
442
      </p>
improve settings page design
Yuki Kimoto authored on 2016-01-18
443
      %= text_field 'deleted-project';
added project delete feature
Yuki Kimoto authored on 2013-03-24
444
    </div>
445
    <div class="modal-footer">
446
      <button id="delete" class="btn btn-danger disabled" disabled data-dismiss="modal" aria-hidden="true">
447
        I understand the consequences, delete this repository
448
      </button>
449
    </div>
450
  </div>
added description changed fe...
Yuki Kimoto authored on 2013-03-24
451

            
setting page
Yuki Kimoto authored on 2013-03-24
452
  %= include '/include/footer';