mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 16:35:52 +01:00
Replace some icon to octicon
- replace some of the non-octicon to octicon. - adjust the color of octicon on the button. modified icon is as follows. - .icon-home -> .octicon-home - .icon-time -> .octicon-clock - .icon-ok -> .octicon-check - .icon-lock -> .octicon-lock - .icon-envelope -> .octicon-mail - .icon-pencil -> .octicon-pencil - .icon-remove-circle -> .octicon-x - .icon-check -> .octicon-clippy - .icon-calendar -> .octicon-calendar - .icon-cog -> .octicon-gear - .icon-th-list -> .octicon-list-unordered - .icon-trash -> .octicon-trashcan - .icon-arrow-right -> .octicon-arrow-right - .icon-retweet -> .octicon-git-compare - .icon-comment -> .octicon-comment
This commit is contained in:
@@ -14,9 +14,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
@if(account.url.isDefined){
|
@if(account.url.isDefined){
|
||||||
<div><i class="icon-home"></i> <a href="@account.url">@account.url</a></div>
|
<div><i class="octicon octicon-home"></i> <a href="@account.url">@account.url</a></div>
|
||||||
}
|
}
|
||||||
<div><i class="icon-time"></i> <span class="muted">Joined on</span> @date(account.registeredDate)</div>
|
<div><i class="octicon octicon-clock"></i> <span class="muted">Joined on</span> @date(account.registeredDate)</div>
|
||||||
</div>
|
</div>
|
||||||
@if(groupNames.nonEmpty){
|
@if(groupNames.nonEmpty){
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.C
|
|||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="javascript:void(0);" data-name="@loginAccount.get.userName"><i class="icon-ok"></i> <span>@avatar(loginAccount.get.userName, 20) @loginAccount.get.userName</span></a></li>
|
<li><a href="javascript:void(0);" data-name="@loginAccount.get.userName"><i class="octicon octicon-check"></i> <span>@avatar(loginAccount.get.userName, 20) @loginAccount.get.userName</span></a></li>
|
||||||
@groupNames.map { groupName =>
|
@groupNames.map { groupName =>
|
||||||
<li><a href="javascript:void(0);" data-name="@groupName"><i class="icon-white"></i> <span>@avatar(groupName, 20) @groupName</span></a></li>
|
<li><a href="javascript:void(0);" data-name="@groupName"><i class="icon-white"></i> <span>@avatar(groupName, 20) @groupName</span></a></li>
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.C
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<input type="radio" name="isPrivate" value="true" @if(!isCreateRepoOptionPublic){checked}>
|
<input type="radio" name="isPrivate" value="true" @if(!isCreateRepoOptionPublic){checked}>
|
||||||
<span class="strong"><i class="icon-lock"></i> </i> Private</span><br>
|
<span class="strong"><i class="octicon octicon-lock"></i> </i> Private</span><br>
|
||||||
<div>
|
<div>
|
||||||
<span>Only collaborators can read this repository.</span>
|
<span>Only collaborators can read this repository.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<div class="block-header">
|
<div class="block-header">
|
||||||
<a href="@url(repository)">@repository.name</a>
|
<a href="@url(repository)">@repository.name</a>
|
||||||
@if(repository.repository.isPrivate){
|
@if(repository.repository.isPrivate){
|
||||||
<i class="icon-lock"></i>
|
<i class="octicon octicon-lock"></i>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@if(repository.repository.originUserName.isDefined){
|
@if(repository.repository.originUserName.isDefined){
|
||||||
|
|||||||
@@ -43,10 +43,10 @@
|
|||||||
<div>
|
<div>
|
||||||
<hr>
|
<hr>
|
||||||
@if(!account.isGroupAccount){
|
@if(!account.isGroupAccount){
|
||||||
<i class="icon-envelope"></i> @account.mailAddress
|
<i class="octicon octicon-mail"></i> @account.mailAddress
|
||||||
}
|
}
|
||||||
@account.url.map { url =>
|
@account.url.map { url =>
|
||||||
<i class="icon-home"></i> @url
|
<i class="octicon octicon-home"></i> @url
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@(condition: => Boolean)
|
@(condition: => Boolean)
|
||||||
@if(condition){
|
@if(condition){
|
||||||
<i class="icon-ok"></i>
|
<i class="octicon octicon-check"></i>
|
||||||
} else {
|
} else {
|
||||||
<i class="icon-white"></i>
|
<i class="icon-white"></i>
|
||||||
}
|
}
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
</span>
|
</span>
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
@if(hasWritePermission || loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){
|
@if(hasWritePermission || loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){
|
||||||
<a href="#" data-comment-id="@comment.commentId"><i class="icon-pencil"></i></a>
|
<a href="#" data-comment-id="@comment.commentId"><i class="octicon octicon-pencil"></i></a>
|
||||||
<a href="#" data-comment-id="@comment.commentId"><i class="icon-remove-circle"></i></a>
|
<a href="#" data-comment-id="@comment.commentId"><i class="octicon octicon-x"></i></a>
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@(id: String, value: String)(html: Html)
|
@(id: String, value: String)(html: Html)
|
||||||
<div class="input-append" style="margin-bottom: 0px;">
|
<div class="input-append" style="margin-bottom: 0px;">
|
||||||
@html
|
@html
|
||||||
<span id="@id" class="add-on btn" data-clipboard-text="@value" data-placement="bottom" title="copy to clipboard"><i class="icon-check"></i></span>
|
<span id="@id" class="add-on btn" data-clipboard-text="@value" data-placement="bottom" title="copy to clipboard"><i class="octicon octicon-clippy"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
// copy to clipboard
|
// copy to clipboard
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
@import gitbucket.core.view.helpers
|
@import gitbucket.core.view.helpers
|
||||||
<div id="@name" class="input-append date" data-date-format="yyyy-mm-dd" data-date="@value.map(helpers.date)">
|
<div id="@name" class="input-append date" data-date-format="yyyy-mm-dd" data-date="@value.map(helpers.date)">
|
||||||
<input class="span2" name="@name" type="text" readonly="" value="@value.map(helpers.date)" size="16"/>
|
<input class="span2" name="@name" type="text" readonly="" value="@value.map(helpers.date)" size="16"/>
|
||||||
<span class="add-on"><i class="icon-calendar"></i></span>
|
<span class="add-on"><i class="octicon octicon-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
@if(flat){style="border: none; background-color: #eee;"}
|
@if(flat){style="border: none; background-color: #eee;"}
|
||||||
class="dropdown-toggle @if(!flat){btn} else {flat} @if(mini){btn-mini} else {btn-small}" data-toggle="dropdown">
|
class="dropdown-toggle @if(!flat){btn} else {flat} @if(mini){btn-mini} else {btn-small}" data-toggle="dropdown">
|
||||||
@if(value.isEmpty){
|
@if(value.isEmpty){
|
||||||
<i class="icon-cog"></i>
|
<i class="octicon octicon-gear"></i>
|
||||||
} else {
|
} else {
|
||||||
@if(prefix.nonEmpty){
|
@if(prefix.nonEmpty){
|
||||||
<span class="muted">@prefix:</span>
|
<span class="muted">@prefix:</span>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
@if(hasWritePermission){
|
@if(hasWritePermission){
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@helper.html.dropdown(right = true) {
|
@helper.html.dropdown(right = true) {
|
||||||
<li><a href="javascript:void(0);" class="milestone" data-id=""><i class="icon-remove-circle"></i> Clear this milestone</a></li>
|
<li><a href="javascript:void(0);" class="milestone" data-id=""><i class="octicon octicon-x"></i> Clear this milestone</a></li>
|
||||||
@milestones.filter(_._1.closedDate.isEmpty).map { case (milestone, _, _) =>
|
@milestones.filter(_._1.closedDate.isEmpty).map { case (milestone, _, _) =>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:void(0);" class="milestone" data-id="@milestone.milestoneId" data-title="@milestone.title">
|
<a href="javascript:void(0);" class="milestone" data-id="@milestone.milestoneId" data-title="@milestone.title">
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
@if(hasWritePermission){
|
@if(hasWritePermission){
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@helper.html.dropdown(right = true) {
|
@helper.html.dropdown(right = true) {
|
||||||
<li><a href="javascript:void(0);" class="assign" data-name=""><i class="icon-remove-circle"></i> Clear assignee</a></li>
|
<li><a href="javascript:void(0);" class="assign" data-name=""><i class="octicon octicon-x"></i> Clear assignee</a></li>
|
||||||
@collaborators.map { collaborator =>
|
@collaborators.map { collaborator =>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:void(0);" class="assign" data-name="@collaborator">
|
<a href="javascript:void(0);" class="assign" data-name="@collaborator">
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@helper.html.dropdown("Assignee", flat = true) {
|
@helper.html.dropdown("Assignee", flat = true) {
|
||||||
<li><a href="javascript:void(0);" class="toggle-assign" data-name=""><i class="icon-remove-circle"></i> Clear assignee</a></li>
|
<li><a href="javascript:void(0);" class="toggle-assign" data-name=""><i class="octicon octicon-x"></i> Clear assignee</a></li>
|
||||||
@collaborators.map { collaborator =>
|
@collaborators.map { collaborator =>
|
||||||
<li><a href="javascript:void(0);" class="toggle-assign" data-name="@collaborator"><i class="icon-white"></i>@avatar(collaborator, 20) @collaborator</a></li>
|
<li><a href="javascript:void(0);" class="toggle-assign" data-name="@collaborator"><i class="icon-white"></i>@avatar(collaborator, 20) @collaborator</a></li>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<span class="label label-info monospace">@originRepository.owner:@originId</span> ... <span class="label label-info monospace">@forkedRepository.owner:@forkedId</span>
|
<span class="label label-info monospace">@originRepository.owner:@originId</span> ... <span class="label label-info monospace">@forkedRepository.owner:@forkedId</span>
|
||||||
</div>
|
</div>
|
||||||
<div id="compare-edit" style="display: none;">
|
<div id="compare-edit" style="display: none;">
|
||||||
<a href="#" id="cancel-condition-editing" class="pull-right"><i class="icon-remove-circle"></i></a>
|
<a href="#" id="cancel-condition-editing" class="pull-right"><i class="octicon octicon-x"></i></a>
|
||||||
@helper.html.dropdown(originRepository.owner + "/" + originRepository.name, "base fork") {
|
@helper.html.dropdown(originRepository.owner + "/" + originRepository.name, "base fork") {
|
||||||
@members.map { case (owner, name) =>
|
@members.map { case (owner, name) =>
|
||||||
<li><a href="#" class="origin-owner" data-owner="@owner" data-name="@name">@helper.html.checkicon(owner == originRepository.owner) @owner/@name</a></li>
|
<li><a href="#" class="origin-owner" data-owner="@owner" data-name="@name">@helper.html.checkicon(owner == originRepository.owner) @owner/@name</a></li>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
@html.menu("code", repository){
|
@html.menu("code", repository){
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div class="pull-right hide-if-blame"><div class="btn-group">
|
<div class="pull-right hide-if-blame"><div class="btn-group">
|
||||||
<a href="@url(repository)/find/@encodeRefName(branch)" class="btn btn-mini" data-toggle="tooltip" data-placement="bottom" data-hotkey="t" title="Quickly jump between files"><i class="icon icon-th-list"></i></a>
|
<a href="@url(repository)/find/@encodeRefName(branch)" class="btn btn-mini" data-toggle="tooltip" data-placement="bottom" data-hotkey="t" title="Quickly jump between files"><i class="octicon octicon-list-unordered"></i></a>
|
||||||
</div></div>
|
</div></div>
|
||||||
<div class="line-age-legend">
|
<div class="line-age-legend">
|
||||||
<span>Newer</span>
|
<span>Newer</span>
|
||||||
|
|||||||
@@ -45,9 +45,9 @@
|
|||||||
}
|
}
|
||||||
@if(hasWritePermission){
|
@if(hasWritePermission){
|
||||||
@if(prs.map(!_._2.closed).getOrElse(false)){
|
@if(prs.map(!_._2.closed).getOrElse(false)){
|
||||||
<a class="btn disabled btn-mini" data-toggle="tooltip" title="You can’t delete this branch because it has an open pull request"><i class="icon icon-trash icon-white"></i></a>
|
<a class="btn disabled btn-mini" data-toggle="tooltip" title="You can’t delete this branch because it has an open pull request"><i class="octicon octicon-trashcan"></i></a>
|
||||||
}else{
|
}else{
|
||||||
<a href="@url(repository)/delete/@encodeRefName(branch.name)" class="btn @if(info.isMerged){ btn-warning }else{ btn-danger } delete-branch btn-mini" data-name="@branch.name" @if(info.isMerged){ data-toggle="tooltip" title="this branch is merged" }><i class="icon icon-trash icon-white"></i></a>
|
<a href="@url(repository)/delete/@encodeRefName(branch.name)" class="btn @if(info.isMerged){ btn-warning }else{ btn-danger } delete-branch btn-mini" data-name="@branch.name" @if(info.isMerged){ data-toggle="tooltip" title="this branch is merged" }><i class="octicon octicon-trashcan"></i></a>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
</div>
|
</div>
|
||||||
@if(commit.isDifferentFromAuthor) {
|
@if(commit.isDifferentFromAuthor) {
|
||||||
<div class="committer">
|
<div class="committer">
|
||||||
<span class="icon-arrow-right"></span>
|
<span class="octicon octicon-arrow-right"></span>
|
||||||
<span>@user(commit.committerName, commit.committerEmailAddress, "username strong")</span>
|
<span>@user(commit.committerName, commit.committerEmailAddress, "username strong")</span>
|
||||||
<span class="muted"> committed @helper.html.datetimeago(commit.commitTime)</span>
|
<span class="muted"> committed @helper.html.datetimeago(commit.commitTime)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
@user(commit.authorName, commit.authorEmailAddress, "username")
|
@user(commit.authorName, commit.authorEmailAddress, "username")
|
||||||
<span class="muted">authored @helper.html.datetimeago(commit.authorTime)</span>
|
<span class="muted">authored @helper.html.datetimeago(commit.authorTime)</span>
|
||||||
@if(commit.isDifferentFromAuthor) {
|
@if(commit.isDifferentFromAuthor) {
|
||||||
<span class="icon-arrow-right" style="margin-top : -2px;"></span>
|
<span class="octicon octicon-arrow-right" style="margin-top : -2px;"></span>
|
||||||
@user(commit.committerName, commit.committerEmailAddress, "username")
|
@user(commit.committerName, commit.committerEmailAddress, "username")
|
||||||
<span class="muted">committed @helper.html.datetimeago(commit.authorTime)</span>
|
<span class="muted">committed @helper.html.datetimeago(commit.authorTime)</span>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
<div class="pull-right"><div class="btn-group">
|
<div class="pull-right"><div class="btn-group">
|
||||||
<a href="@url(repository)/find/@encodeRefName(branch)" class="btn btn-small" data-toggle="tooltip" data-placement="bottom" data-hotkey="t" title="Quickly jump between files"><i class="octicon octicon-list-unordered"></i></a>
|
<a href="@url(repository)/find/@encodeRefName(branch)" class="btn btn-small" data-toggle="tooltip" data-placement="bottom" data-hotkey="t" title="Quickly jump between files"><i class="octicon octicon-list-unordered"></i></a>
|
||||||
@if(pathList.nonEmpty){
|
@if(pathList.nonEmpty){
|
||||||
<a href="@url(repository)/commits/@encodeRefName(branch)/@pathList.mkString("/")" class="btn btn-small" data-toggle="tooltip" data-placement="bottom" title="Browse commits for this branch"><i class="icon icon-time"></i></a>
|
<a href="@url(repository)/commits/@encodeRefName(branch)/@pathList.mkString("/")" class="btn btn-small" data-toggle="tooltip" data-placement="bottom" title="Browse commits for this branch"><i class="octicon octicon-clock"></i></a>
|
||||||
}
|
}
|
||||||
</div></div>
|
</div></div>
|
||||||
@branchPullRequest.map{ case (pullRequest, issue) =>
|
@branchPullRequest.map{ case (pullRequest, issue) =>
|
||||||
<a href="@url(repository)/pull/@pullRequest.issueId" class="btn btn-small btn-pullrequest-branch" title="@issue.title" data-toggle="tooltip">#@pullRequest.issueId</a>
|
<a href="@url(repository)/pull/@pullRequest.issueId" class="btn btn-small btn-pullrequest-branch" title="@issue.title" data-toggle="tooltip">#@pullRequest.issueId</a>
|
||||||
}.getOrElse{
|
}.getOrElse{
|
||||||
<a href="@url(repository)/compare?head=@urlEncode(encodeRefName(branch))" class="btn btn-small btn-success"><i class="icon-white icon-retweet" data-toggle="tooltip" title="Compare, review, create a pull request"></i></a>
|
<a href="@url(repository)/compare?head=@urlEncode(encodeRefName(branch))" class="btn btn-small btn-success"><i class="octicon octicon-git-compare" data-toggle="tooltip" title="Compare, review, create a pull request"></i></a>
|
||||||
}
|
}
|
||||||
@helper.html.branchcontrol(
|
@helper.html.branchcontrol(
|
||||||
branch,
|
branch,
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
@if(latestCommit.isDifferentFromAuthor) {
|
@if(latestCommit.isDifferentFromAuthor) {
|
||||||
<div class="committer">
|
<div class="committer">
|
||||||
<span class="icon-arrow-right"></span>
|
<span class="octicon octicon-arrow-right"></span>
|
||||||
<span>@user(latestCommit.committerName, latestCommit.committerEmailAddress, "username strong")</span>
|
<span>@user(latestCommit.committerName, latestCommit.committerEmailAddress, "username strong")</span>
|
||||||
<span class="muted"> committed @helper.html.datetimeago(latestCommit.commitTime)</span>
|
<span class="muted"> committed @helper.html.datetimeago(latestCommit.commitTime)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<table id="tree-finder-results" class="table table-file-list" data-url="@url(repository)/tree-list/@treeId">
|
<table id="tree-finder-results" class="table table-file-list" data-url="@url(repository)/tree-list/@treeId">
|
||||||
<tbody class="tree-browser-result-template">
|
<tbody class="tree-browser-result-template">
|
||||||
<tr class="tree-browser-result">
|
<tr class="tree-browser-result">
|
||||||
<td class="icon"><span class="icon icon-chevron-right"></span></td>
|
<td class="icon"><span class="octicon octicon-chevron-right"></span></td>
|
||||||
<td class="icon"><i class="octicon octicon-file-text"></i></td>
|
<td class="icon"><i class="octicon octicon-file-text"></i></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="@url(repository)/blob/@encodeRefName(branch)"></a>
|
<a href="@url(repository)/blob/@encodeRefName(branch)"></a>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
Opened by <a href="@url(issue.openedUserName)" class="username">@issue.openedUserName</a>
|
Opened by <a href="@url(issue.openedUserName)" class="username">@issue.openedUserName</a>
|
||||||
@helper.html.datetimeago(issue.registeredDate)
|
@helper.html.datetimeago(issue.registeredDate)
|
||||||
@if(issue.commentCount > 0){
|
@if(issue.commentCount > 0){
|
||||||
<i class="icon-comment"></i><span class="strong">@issue.commentCount</span> @plural(issue.commentCount, "comment")
|
<i class="octicon octicon-comment"></i><span class="strong">@issue.commentCount</span> @plural(issue.commentCount, "comment")
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -374,6 +374,22 @@ span.highlight {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn .octicon {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-success .octicon {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-warning .octicon {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-danger .octicon {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
/* Side Menu */
|
/* Side Menu */
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user