mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Fix labels and priorities styles
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
@defining(label.map(_.labelId).getOrElse("new")){ labelId =>
|
@defining(label.map(_.labelId).getOrElse("new")){ labelId =>
|
||||||
<div id="edit-label-area-@labelId">
|
<div id="edit-label-area-@labelId">
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
<input type="text" id="labelName-@labelId" style="width: 300px; float: left; margin-right: 4px;" class="form-control" value="@label.map(_.labelName)"@if(labelId == "new"){ placeholder="New label name"}/>
|
<input type="text" id="labelName-@labelId" style="width: 300px; float: left; margin-right: 4px;" class="form-control input-sm" value="@label.map(_.labelName)"@if(labelId == "new"){ placeholder="New label name"}/>
|
||||||
<div id="label-color-@labelId" class="input-group color bscp" data-color="#@label.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
<div id="label-color-@labelId" class="input-group color bscp" data-color="#@label.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
||||||
<input type="text" class="form-control" id="labelColor-@labelId" value="#@label.map(_.color).getOrElse("888888")" style="width: 100px;">
|
<input type="text" class="form-control input-sm" id="labelColor-@labelId" value="#@label.map(_.color).getOrElse("888888")" style="width: 100px;">
|
||||||
<span class="input-group-addon"><i style="background-color: #@label.map(_.color).getOrElse("888888");"></i></span>
|
<span class="input-group-addon"><i style="background-color: #@label.map(_.color).getOrElse("888888");"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
</script>
|
</script>
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
<span id="label-error-@labelId" class="error"></span>
|
<span id="label-error-@labelId" class="error"></span>
|
||||||
<input type="button" id="cancel-@labelId" class="btn btn-default label-edit-cancel" value="Cancel">
|
<input type="button" id="cancel-@labelId" class="btn btn-sm btn-default label-edit-cancel" value="Cancel">
|
||||||
<input type="button" id="submit-@labelId" class="btn btn-success" style="margin-bottom: 0px;" value="@(if(labelId == "new") "Create label" else "Save changes")"/>
|
<input type="button" id="submit-@labelId" class="btn btn-sm btn-success" style="margin-bottom: 0px;" value="@(if(labelId == "new") "Create label" else "Save changes")"/>
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
<td style="padding-top: 15px; padding-bottom: 15px;">
|
<td style="padding-top: 15px; padding-bottom: 15px;">
|
||||||
<div class="milestone row" id="label-@label.labelId">
|
<div class="milestone row" id="label-@label.labelId">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div style="margin-top: 6px">
|
<div>
|
||||||
<a href="@helpers.url(repository)/issues?labels=@helpers.urlEncode(label.labelName)" id="label-row-content-@label.labelId">
|
<a href="@helpers.url(repository)/issues?labels=@helpers.urlEncode(label.labelName)" id="label-row-content-@label.labelId">
|
||||||
<span style="background-color: #@label.color; color: #@label.fontColor; padding: 8px; font-size: 120%; border-radius: 4px;">
|
<span style="background-color: #@label.color; color: #@label.fontColor; padding: 8px; border-radius: 4px;">
|
||||||
<i class="octicon octicon-tag" style="color: #@label.fontColor;"></i>
|
<i class="octicon octicon-tag" style="color: #@label.fontColor;"></i>
|
||||||
@label.labelName
|
@label.labelName
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
@gitbucket.core.html.menu("labels", repository){
|
@gitbucket.core.html.menu("labels", repository){
|
||||||
@if(context.loginAccount.isDefined){
|
@if(context.loginAccount.isDefined){
|
||||||
<div class="pull-right" style="margin-bottom: 10px;">
|
<div class="pull-right" style="margin-bottom: 10px;">
|
||||||
<a class="btn btn-success" href="javascript:void(0);" id="new-label-button">New label</a>
|
<a class="btn btn-success btn-sm" href="javascript:void(0);" id="new-label-button">New label</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<table class="table table-bordered table-hover table-issues" id="new-label-table" style="display: none;">
|
<table class="table table-bordered table-hover table-issues" id="new-label-table" style="display: none;">
|
||||||
|
|||||||
@@ -4,19 +4,19 @@
|
|||||||
@defining(priority.map(_.priorityId).getOrElse("new")){ priorityId =>
|
@defining(priority.map(_.priorityId).getOrElse("new")){ priorityId =>
|
||||||
<div id="edit-priority-area-@priorityId">
|
<div id="edit-priority-area-@priorityId">
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
<input type="text" id="priorityName-@priorityId" style="width: 300px; float: left; margin-right: 4px;" class="form-control" value="@priority.map(_.priorityName)"@if(priorityId == "new"){ placeholder="New priority name"}/>
|
<input type="text" id="priorityName-@priorityId" style="width: 200px; float: left; margin-right: 4px;" class="form-control input-sm" value="@priority.map(_.priorityName)"@if(priorityId == "new"){ placeholder="New priority name"}/>
|
||||||
<div id="priority-color-@priorityId" class="input-group color bscp" data-color="#@priority.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
<div id="priority-color-@priorityId" class="input-group color bscp" data-color="#@priority.map(_.color).getOrElse("888888")" data-color-format="hex" style="width: 100px; float: left;">
|
||||||
<input type="text" class="form-control" id="priorityColor-@priorityId" value="#@priority.map(_.color).getOrElse("888888")" style="width: 100px;">
|
<input type="text" class="form-control input-sm" id="priorityColor-@priorityId" value="#@priority.map(_.color).getOrElse("888888")" style="width: 100px;">
|
||||||
<span class="input-group-addon"><i style="background-color: #@priority.map(_.color).getOrElse("888888");"></i></span>
|
<span class="input-group-addon"><i style="background-color: #@priority.map(_.color).getOrElse("888888");"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$('div#priority-color-@priorityId').colorpicker({format: "hex"});
|
$('div#priority-color-@priorityId').colorpicker({format: "hex"});
|
||||||
</script>
|
</script>
|
||||||
<input type="text" id="description-@priorityId" style="width: 500px; float: left; margin-left: 4px;" class="form-control" value="@priority.flatMap(_.description).getOrElse("")" placeholder="Description..." />
|
<input type="text" id="description-@priorityId" style="width: 500px; float: left; margin-left: 4px;" class="form-control input-sm" value="@priority.flatMap(_.description).getOrElse("")" placeholder="Description..." />
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
<span id="priority-error-@priorityId" class="error"></span>
|
<span id="priority-error-@priorityId" class="error"></span>
|
||||||
<input type="button" id="cancel-@priorityId" class="btn btn-default priority-edit-cancel" value="Cancel">
|
<input type="button" id="cancel-@priorityId" class="btn btn-sm btn-default priority-edit-cancel" value="Cancel">
|
||||||
<input type="button" id="submit-@priorityId" class="btn btn-success" style="margin-bottom: 0px;" value="@(if(priorityId == "new") "Create priority" else "Save changes")"/>
|
<input type="button" id="submit-@priorityId" class="btn btn-sm btn-success" style="margin-bottom: 0px;" value="@(if(priorityId == "new") "Create priority" else "Save changes")"/>
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
@gitbucket.core.html.menu("priorities", repository){
|
@gitbucket.core.html.menu("priorities", repository){
|
||||||
@if(hasWritePermission){
|
@if(hasWritePermission){
|
||||||
<div class="pull-right" style="margin-bottom: 10px;">
|
<div class="pull-right" style="margin-bottom: 10px;">
|
||||||
<a class="btn btn-success" href="javascript:void(0);" id="new-priority-button">New priority</a>
|
<a class="btn btn-success btn-sm" href="javascript:void(0);" id="new-priority-button">New priority</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<table class="table table-bordered table-hover table-issues" id="new-priority-table" style="display: none;">
|
<table class="table table-bordered table-hover table-issues" id="new-priority-table" style="display: none;">
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
@if(hasWritePermission) {
|
@if(hasWritePermission) {
|
||||||
<div class="pull-left priority-sort-handle" style="margin-top: 3px"><i class="octicon octicon-grabber"></i></div>
|
<div class="pull-left priority-sort-handle" style="margin-top: 3px"><i class="octicon octicon-grabber"></i></div>
|
||||||
}
|
}
|
||||||
<div style="margin-top: 6px">
|
<div>
|
||||||
<a href="@helpers.url(repository)/issues?priority=@helpers.urlEncode(priority.priorityName)&state=open" id="priority-row-content-@priority.priorityId">
|
<a href="@helpers.url(repository)/issues?priority=@helpers.urlEncode(priority.priorityName)&state=open" id="priority-row-content-@priority.priorityId">
|
||||||
<span style="background-color: #@priority.color; color: #@priority.fontColor; padding: 8px; font-size: 120%; border-radius: 4px;">
|
<span style="background-color: #@priority.color; color: #@priority.fontColor; padding: 8px; border-radius: 4px;">
|
||||||
<i class="octicon octicon-flame" style="color: #@priority.fontColor;"></i> @priority.priorityName
|
<i class="octicon octicon-flame" style="color: #@priority.fontColor;"></i> @priority.priorityName
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user