mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 07:55:55 +01:00
mainly added icons and set correct bootstrap classes for forms, but also used some new fonts, provided via google webfonts
88 lines
3.4 KiB
HTML
88 lines
3.4 KiB
HTML
@(repository: service.RepositoryService.RepositoryInfo, info: Option[Any])(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main("Settings", Some(repository)){
|
|
@html.header("settings", repository)
|
|
@menu("options", repository){
|
|
@helper.html.information(info)
|
|
<form id="form" method="post" action="@url(repository)/settings/options" validate="true">
|
|
<div class="box">
|
|
<div class="box-header">Settings</div>
|
|
<div class="box-content">
|
|
<fieldset>
|
|
<label for="description" class="strong">Description:</label>
|
|
<input type="text" name="description" id="description" style="width: 600px;" value="@repository.repository.description"/>
|
|
</fieldset>
|
|
<fieldset class="margin">
|
|
<label for="defaultBranch" class="strong">Default Branch:</label>
|
|
<select name="defaultBranch" id="defaultBranch">
|
|
@repository.branchList.map { branch =>
|
|
<option value="@branch"@if(branch==repository.repository.defaultBranch){ selected}>@branch</option>
|
|
}
|
|
</select>
|
|
<span class="error" id="error-defaultBranch"></span>
|
|
</fieldset>
|
|
<fieldset class="margin">
|
|
<label class="radio">
|
|
<input type="radio" name="isPrivate" value="false"
|
|
@if(!repository.repository.isPrivate ){ checked }
|
|
@if(repository.repository.parentUserName.isDefined){ disabled }
|
|
>
|
|
<span class="strong">Public</span><br>
|
|
<div>
|
|
<span class="note">All users and guests can read this repository.</span>
|
|
</div>
|
|
</label>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label class="radio">
|
|
<input type="radio" name="isPrivate" value="true"
|
|
@if(repository.repository.isPrivate ){ checked }
|
|
@if(repository.repository.parentUserName.isDefined){ disabled }
|
|
>
|
|
<span class="strong">Private</span><br>
|
|
<div>
|
|
<span class="note">Only collaborators can read this repository.</span>
|
|
</div>
|
|
</label>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
@*
|
|
<div class="box">
|
|
<div class="box-header">Features:</div>
|
|
<div class="box-content">
|
|
<dl>
|
|
<dt>
|
|
<label class="checkbox strong">
|
|
<input type="checkbox" name="wiki" id="wiki"/> Wiki
|
|
</label>
|
|
</dt>
|
|
<dd>
|
|
Adds lightweight Wiki system to this repository.
|
|
This is the simplest way to provide documentation or examples.
|
|
Only collaborators can edit Wiki pages.
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
<dl>
|
|
<dt>
|
|
<label class="checkbox strong">
|
|
<input type="checkbox" name="issue" id="issue"/> Issue
|
|
</label>
|
|
</dt>
|
|
<dd>
|
|
Adds lightweight issue tracking integrated with this repository.
|
|
All users who have signed in and can access this repository can register an issue.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
*@
|
|
<fieldset>
|
|
<input type="submit" class="btn btn-success" value="Apply changes"/>
|
|
</fieldset>
|
|
</form>
|
|
}
|
|
}
|