mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-15 09:55:49 +01:00
Change import to resolve resolving error in IntelliJ
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
@(account: gitbucket.core.model.Account,
|
@(account: gitbucket.core.model.Account,
|
||||||
groupNames: List[String],
|
groupNames: List[String],
|
||||||
activities: List[gitbucket.core.model.Activity])(implicit context: gitbucket.core.controller.Context)
|
activities: List[gitbucket.core.model.Activity])(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.account.html.main(account, groupNames, "activity"){
|
||||||
@main(account, groupNames, "activity"){
|
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a href="@path/@{account.userName}.atom"><img src="@assets/common/images/feed.png" alt="activities"></a>
|
<a href="@context.path/@{account.userName}.atom"><img src="@{helpers.assets}/common/images/feed.png" alt="activities"></a>
|
||||||
</div>
|
</div>
|
||||||
@helper.html.activities(activities)
|
@gitbucket.core.helper.html.activities(activities)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
@(account: gitbucket.core.model.Account,
|
@(account: gitbucket.core.model.Account,
|
||||||
personalTokens: List[gitbucket.core.model.AccessToken],
|
personalTokens: List[gitbucket.core.model.AccessToken],
|
||||||
gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
|
gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@gitbucket.core.html.main("Applications"){
|
||||||
@import gitbucket.core.view.helpers._
|
|
||||||
@html.main("Applications"){
|
|
||||||
<div class="container body">
|
<div class="container body">
|
||||||
@menu("application", settings.ssh){
|
@gitbucket.core.account.html.menu("application", context.settings.ssh){
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">Personal access tokens</div>
|
<div class="panel-heading strong">Personal access tokens</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@@ -15,13 +13,13 @@
|
|||||||
Tokens you have generated that can be used to access the GitBucket API.
|
Tokens you have generated that can be used to access the GitBucket API.
|
||||||
<hr style="margin-top: 10px;">
|
<hr style="margin-top: 10px;">
|
||||||
}
|
}
|
||||||
@gneratedToken.map{ case (token, tokenString) =>
|
@gneratedToken.map { case (token, tokenString) =>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
Make sure to copy your new personal access token now. You won't be able to see it again!
|
Make sure to copy your new personal access token now. You won't be able to see it again!
|
||||||
</div>
|
</div>
|
||||||
<a href="@path/@account.userName/_personalToken/delete/@token.accessTokenId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
<a href="@context.path/@account.userName/_personalToken/delete/@token.accessTokenId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
||||||
<div style="width: 50%;">
|
<div style="width: 50%;">
|
||||||
@helper.html.copy("generated-token-copy", tokenString){
|
@gitbucket.core.helper.html.copy("generated-token-copy", tokenString){
|
||||||
<input type="text" value="@tokenString" class="form-control input-sm" readonly>
|
<input type="text" value="@tokenString" class="form-control input-sm" readonly>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -32,11 +30,11 @@
|
|||||||
<hr>
|
<hr>
|
||||||
}
|
}
|
||||||
<strong style="line-height: 30px;">@token.note</strong>
|
<strong style="line-height: 30px;">@token.note</strong>
|
||||||
<a href="@path/@account.userName/_personalToken/delete/@token.accessTokenId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
<a href="@context.path/@account.userName/_personalToken/delete/@token.accessTokenId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="@path/@account.userName/_personalToken" validate="true">
|
<form method="POST" action="@context.path/@account.userName/_personalToken" validate="true">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">Generate new token</div>
|
<div class="panel-heading strong">Generate new token</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
@(account: gitbucket.core.model.Account, info: Option[Any], error: Option[Any])(implicit context: gitbucket.core.controller.Context)
|
@(account: gitbucket.core.model.Account, info: Option[Any], error: Option[Any])(implicit context: gitbucket.core.controller.Context)
|
||||||
@import gitbucket.core.util.LDAPUtil
|
@import gitbucket.core.util.LDAPUtil
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.html.main("Edit your profile"){
|
||||||
@html.main("Edit your profile"){
|
|
||||||
<div class="container body">
|
<div class="container body">
|
||||||
@menu("profile", settings.ssh){
|
@gitbucket.core.account.html.menu("profile", context.settings.ssh){
|
||||||
@helper.html.information(info)
|
@gitbucket.core.helper.html.information(info)
|
||||||
@helper.html.error(error)
|
@gitbucket.core.helper.html.error(error)
|
||||||
@if(LDAPUtil.isDummyMailAddress(account)){<div class="alert alert-danger">Please register your mail address.</div>}
|
@if(LDAPUtil.isDummyMailAddress(account)){<div class="alert alert-danger">Please register your mail address.</div>}
|
||||||
<form action="@url(account.userName)/_edit" method="POST" validate="true">
|
<form action="@helpers.url(account.userName)/_edit" method="POST" validate="true">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">Profile</div>
|
<div class="panel-heading strong">Profile</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@@ -42,7 +41,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
<label for="avatar" class="strong">Image (optional):</label>
|
<label for="avatar" class="strong">Image (optional):</label>
|
||||||
@helper.html.uploadavatar(Some(account))
|
@gitbucket.core.helper.html.uploadavatar(Some(account))
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,10 +49,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a href="@path/@account.userName/_delete" class="btn btn-danger" id="delete">Delete account</a>
|
<a href="@context.path/@account.userName/_delete" class="btn btn-danger" id="delete">Delete account</a>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" class="btn btn-success" value="Save"/>
|
<input type="submit" class="btn btn-success" value="Save"/>
|
||||||
@if(!LDAPUtil.isDummyMailAddress(account)){<a href="@url(account.userName)" class="btn btn-default">Cancel</a>}
|
@if(!LDAPUtil.isDummyMailAddress(account)){<a href="@helpers.url(account.userName)" class="btn btn-default">Cancel</a>}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
@(account: Option[gitbucket.core.model.Account], members: List[gitbucket.core.model.GroupMember])(implicit context: gitbucket.core.controller.Context)
|
@(account: Option[gitbucket.core.model.Account], members: List[gitbucket.core.model.GroupMember])(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.html.main(if(account.isEmpty) "Create group" else "Edit group"){
|
||||||
@html.main(if(account.isEmpty) "Create group" else "Edit group"){
|
|
||||||
<div class="content-wrapper main-center">
|
<div class="content-wrapper main-center">
|
||||||
<div class="content body">
|
<div class="content body">
|
||||||
<h2>@{if(account.isEmpty) "Create group" else "Edit group"}</h2>
|
<h2>@{if(account.isEmpty) "Create group" else "Edit group"}</h2>
|
||||||
<form id="form" method="post" action="@if(account.isEmpty){@path/groups/new} else {@path/@account.get.userName/_editgroup}" validate="true">
|
<form id="form" method="post" action="@if(account.isEmpty){@context.path/groups/new} else {@context.path/@account.get.userName/_editgroup}" validate="true">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
@@ -24,7 +23,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
<label for="avatar" class="strong">Image (Optional)</label>
|
<label for="avatar" class="strong">Image (Optional)</label>
|
||||||
@helper.html.uploadavatar(account)
|
@gitbucket.core.helper.html.uploadavatar(account)
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
@@ -32,7 +31,7 @@
|
|||||||
<label class="strong">Members</label>
|
<label class="strong">Members</label>
|
||||||
<ul id="member-list" class="collaborator">
|
<ul id="member-list" class="collaborator">
|
||||||
</ul>
|
</ul>
|
||||||
@helper.html.account("memberName", 200)
|
@gitbucket.core.helper.html.account("memberName", 200)
|
||||||
<input type="button" class="btn btn-default" value="Add" id="addMember"/>
|
<input type="button" class="btn btn-default" value="Add" id="addMember"/>
|
||||||
<input type="hidden" id="members" name="members" value="@members.map(member => member.userName + ":" + member.isManager).mkString(",")"/>
|
<input type="hidden" id="members" name="members" value="@members.map(member => member.userName + ":" + member.isManager).mkString(",")"/>
|
||||||
<div>
|
<div>
|
||||||
@@ -44,12 +43,12 @@
|
|||||||
<fieldset class="border-top">
|
<fieldset class="border-top">
|
||||||
@if(account.isDefined){
|
@if(account.isDefined){
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a href="@url(account.get.userName)/_deletegroup" id="delete" class="btn btn-danger">Delete Group</a>
|
<a href="@helpers.url(account.get.userName)/_deletegroup" id="delete" class="btn btn-danger">Delete Group</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<input type="submit" class="btn btn-success" value="@if(account.isEmpty){Create Group} else {Update Group}"/>
|
<input type="submit" class="btn btn-success" value="@if(account.isEmpty){Create Group} else {Update Group}"/>
|
||||||
@if(account.isDefined){
|
@if(account.isDefined){
|
||||||
<a href="@url(account.get.userName)" class="btn btn-default">Cancel</a>
|
<a href="@helpers.url(account.get.userName)" class="btn btn-default">Cancel</a>
|
||||||
}
|
}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
@@ -81,7 +80,7 @@ $(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check existence
|
// check existence
|
||||||
$.post('@path/_user/existence', {
|
$.post('@context.path/_user/existence', {
|
||||||
'userName': userName
|
'userName': userName
|
||||||
}, function(data, status){
|
}, function(data, status){
|
||||||
if(data == 'true'){
|
if(data == 'true'){
|
||||||
@@ -125,7 +124,7 @@ $(function(){
|
|||||||
.append(memberButton)
|
.append(memberButton)
|
||||||
.append(managerButton))
|
.append(managerButton))
|
||||||
.append(' ')
|
.append(' ')
|
||||||
.append($('<a>').attr('href', '@path/' + userName).text(userName))
|
.append($('<a>').attr('href', '@context.path/' + userName).text(userName))
|
||||||
.append(' ')
|
.append(' ')
|
||||||
.append($('<a href="#" class="remove pull-right">(remove)</a>')));
|
.append($('<a href="#" class="remove pull-right">(remove)</a>')));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@(account: gitbucket.core.model.Account, groupNames: List[String], active: String,
|
@(account: gitbucket.core.model.Account, groupNames: List[String], active: String,
|
||||||
isGroupManager: Boolean = false)(body: Html)(implicit context: gitbucket.core.controller.Context)
|
isGroupManager: Boolean = false)(body: Html)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.html.main(account.userName){
|
||||||
@html.main(account.userName){
|
|
||||||
<div class="main-sidebar">
|
<div class="main-sidebar">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<div class="user-panel">
|
<div class="user-panel">
|
||||||
<div class="pull-left image">@avatar(account.userName, 40)</div>
|
<div class="pull-left image">@helpers.avatar(account.userName, 40)</div>
|
||||||
<div class="pull-left info">
|
<div class="pull-left info">
|
||||||
<p>@account.userName</p>
|
<p>@account.userName</p>
|
||||||
@account.fullName
|
@account.fullName
|
||||||
@@ -19,14 +18,14 @@
|
|||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
<p style="color: white;">
|
<p style="color: white;">
|
||||||
<i class="octicon octicon-clock"></i> Joined on @date(account.registeredDate)
|
<i class="octicon octicon-clock"></i> Joined on @helpers.date(account.registeredDate)
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@if(groupNames.nonEmpty){
|
@if(groupNames.nonEmpty){
|
||||||
<ul class="sidebar-menu">
|
<ul class="sidebar-menu">
|
||||||
<li class="header">Groups</li>
|
<li class="header">Groups</li>
|
||||||
@groupNames.map { groupName =>
|
@groupNames.map { groupName =>
|
||||||
<li>@avatarLink(groupName, 20, tooltip = true, label = true)</li>
|
<li>@helpers.avatarLink(groupName, 20, tooltip = true, label = true)</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
@@ -35,28 +34,28 @@
|
|||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<div class="content body">
|
<div class="content body">
|
||||||
<ul class="nav nav-tabs" style="margin-bottom: 5px;">
|
<ul class="nav nav-tabs" style="margin-bottom: 5px;">
|
||||||
<li@if(active == "repositories"){ class="active"}><a href="@url(account.userName)?tab=repositories">Repositories</a></li>
|
<li@if(active == "repositories"){ class="active"}><a href="@helpers.url(account.userName)?tab=repositories">Repositories</a></li>
|
||||||
@if(account.isGroupAccount){
|
@if(account.isGroupAccount){
|
||||||
<li@if(active == "members"){ class="active"}><a href="@url(account.userName)?tab=members">Members</a></li>
|
<li@if(active == "members"){ class="active"}><a href="@helpers.url(account.userName)?tab=members">Members</a></li>
|
||||||
} else {
|
} else {
|
||||||
<li@if(active == "activity"){ class="active"}><a href="@url(account.userName)?tab=activity">Public Activity</a></li>
|
<li@if(active == "activity"){ class="active"}><a href="@helpers.url(account.userName)?tab=activity">Public Activity</a></li>
|
||||||
}
|
}
|
||||||
@gitbucket.core.plugin.PluginRegistry().getProfileTabs.map { tab =>
|
@gitbucket.core.plugin.PluginRegistry().getProfileTabs.map { tab =>
|
||||||
@tab(account, context).map { link =>
|
@tab(account, context).map { link =>
|
||||||
<li@if(active == link.id){ class="active"}><a href="@path/@link.path">@link.label</a></li>
|
<li@if(active == link.id){ class="active"}><a href="@context.path/@link.path">@link.label</a></li>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@if(loginAccount.isDefined && loginAccount.get.userName == account.userName){
|
@if(context.loginAccount.isDefined && context.loginAccount.get.userName == account.userName){
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<a href="@url(account.userName)/_edit" class="btn btn-default">Edit Your Profile</a>
|
<a href="@helpers.url(account.userName)/_edit" class="btn btn-default">Edit Your Profile</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@if(loginAccount.isDefined && account.isGroupAccount && isGroupManager){
|
@if(context.loginAccount.isDefined && account.isGroupAccount && isGroupManager){
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<a href="@url(account.userName)/_editgroup" class="btn btn-default">Edit Group</a>
|
<a href="@helpers.url(account.userName)/_editgroup" class="btn btn-default">Edit Group</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
@(account: gitbucket.core.model.Account, members: List[String], isGroupManager: Boolean)(implicit context: gitbucket.core.controller.Context)
|
@(account: gitbucket.core.model.Account, members: List[String], isGroupManager: Boolean)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.account.html.main(account, Nil, "members", isGroupManager){
|
||||||
@main(account, Nil, "members", isGroupManager){
|
|
||||||
@if(members.isEmpty){
|
@if(members.isEmpty){
|
||||||
No members
|
No members
|
||||||
} else {
|
} else {
|
||||||
@members.map { userName =>
|
@members.map { userName =>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="block-header">
|
<div class="block-header">
|
||||||
@avatar(userName, 20) <a href="@url(userName)">@userName</a>
|
@helpers.avatar(userName, 20) <a href="@helpers.url(userName)">@userName</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,22 @@
|
|||||||
@(active: String, ssh: Boolean)(body: Html)(implicit context: gitbucket.core.controller.Context)
|
@(active: String, ssh: Boolean)(body: Html)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
|
||||||
<div class="main-sidebar">
|
<div class="main-sidebar">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<ul class="sidebar-menu">
|
<ul class="sidebar-menu">
|
||||||
<li@if(active=="profile"){ class="active"}>
|
<li@if(active=="profile"){ class="active"}>
|
||||||
<a href="@path/@loginAccount.get.userName/_edit">Profile</a>
|
<a href="@context.path/@context.loginAccount.get.userName/_edit">Profile</a>
|
||||||
</li>
|
</li>
|
||||||
@if(ssh){
|
@if(ssh){
|
||||||
<li@if(active=="ssh"){ class="active"}>
|
<li@if(active=="ssh"){ class="active"}>
|
||||||
<a href="@path/@loginAccount.get.userName/_ssh">SSH Keys</a>
|
<a href="@context.path/@context.loginAccount.get.userName/_ssh">SSH Keys</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
<li@if(active=="application"){ class="active"}>
|
<li@if(active=="application"){ class="active"}>
|
||||||
<a href="@path/@loginAccount.get.userName/_application">Applications</a>
|
<a href="@context.path/@context.loginAccount.get.userName/_application">Applications</a>
|
||||||
</li>
|
</li>
|
||||||
@gitbucket.core.plugin.PluginRegistry().getAccountSettingMenus.map { menu =>
|
@gitbucket.core.plugin.PluginRegistry().getAccountSettingMenus.map { menu =>
|
||||||
@menu(context).map { link =>
|
@menu(context).map { link =>
|
||||||
<li@if(active==link.id){ class="active"}>
|
<li@if(active==link.id){ class="active"}>
|
||||||
<a href="@path/@link.path">@link.label</a>
|
<a href="@context.path/@link.path">@link.label</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
@(groupNames: List[String],
|
@(groupNames: List[String],
|
||||||
isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.Context)
|
isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@gitbucket.core.html.main("Create a New Repository"){
|
||||||
@html.main("Create a New Repository"){
|
|
||||||
<div class="content-wrapper main-center">
|
<div class="content-wrapper main-center">
|
||||||
<div class="content body">
|
<div class="content body">
|
||||||
<h2>Create a new repository</h2>
|
<h2>Create a new repository</h2>
|
||||||
<p class="muted">
|
<p class="muted">
|
||||||
A repository contains all the files for your project, including the revision history.
|
A repository contains all the files for your project, including the revision history.
|
||||||
</p>
|
</p>
|
||||||
<form id="form" method="post" action="@path/new" validate="true">
|
<form id="form" method="post" action="@context.path/new" validate="true">
|
||||||
<fieldset class="border-top form-group">
|
<fieldset class="border-top form-group">
|
||||||
<dl style="float: left;">
|
<dl style="float: left;">
|
||||||
<dt>Owner</dt>
|
<dt>Owner</dt>
|
||||||
<dd style="margin-left: 0px;">
|
<dd style="margin-left: 0px;">
|
||||||
<div class="btn-group" id="owner-dropdown">
|
<div class="btn-group" id="owner-dropdown">
|
||||||
<button class="btn dropdown-toggle btn-default" data-toggle="dropdown">
|
<button class="btn dropdown-toggle btn-default" data-toggle="dropdown">
|
||||||
<span class="strong">@avatar(loginAccount.get.userName, 20) @loginAccount.get.userName</span>
|
<span class="strong">@helpers.avatar(context.loginAccount.get.userName, 20) @context.loginAccount.get.userName</span>
|
||||||
<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="octicon octicon-check"></i> <span>@avatar(loginAccount.get.userName, 20) @loginAccount.get.userName</span></a></li>
|
<li><a href="javascript:void(0);" data-name="@context.loginAccount.get.userName"><i class="octicon octicon-check"></i> <span>@helpers.avatar(context.loginAccount.get.userName, 20) @context.loginAccount.get.userName</span></a></li>
|
||||||
@groupNames.map { groupName =>
|
@groupNames.map { groupName =>
|
||||||
<li><a href="javascript:void(0);" data-name="@groupName"><i class="octicon"></i> <span>@avatar(groupName, 20) @groupName</span></a></li>
|
<li><a href="javascript:void(0);" data-name="@groupName"><i class="octicon"></i> <span>@helpers.avatar(groupName, 20) @groupName</span></a></li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
<input type="hidden" name="owner" id="owner" value="@loginAccount.get.userName"/>
|
<input type="hidden" name="owner" id="owner" value="@context.loginAccount.get.userName"/>
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
@()(implicit context: gitbucket.core.controller.Context)
|
@()(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@gitbucket.core.html.main("Create your account"){
|
||||||
@import gitbucket.core.view.helpers._
|
|
||||||
@html.main("Create your account"){
|
|
||||||
<div class="content-wrapper main-center">
|
<div class="content-wrapper main-center">
|
||||||
<div class="content body">
|
<div class="content body">
|
||||||
<h2>Create your account</h2>
|
<h2>Create your account</h2>
|
||||||
<form action="@path/register" method="POST" validate="true">
|
<form action="@context.path/register" method="POST" validate="true">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@@ -39,7 +37,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="avatar" class="strong">Image (optional):</label>
|
<label for="avatar" class="strong">Image (optional):</label>
|
||||||
@helper.html.uploadavatar(None)
|
@gitbucket.core.helper.html.uploadavatar(None)
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
@(account: gitbucket.core.model.Account, groupNames: List[String],
|
@(account: gitbucket.core.model.Account, groupNames: List[String],
|
||||||
repositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo],
|
repositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo],
|
||||||
isGroupManager: Boolean)(implicit context: gitbucket.core.controller.Context)
|
isGroupManager: Boolean)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import gitbucket.core.view.helpers
|
||||||
@import gitbucket.core.view.helpers._
|
@import gitbucket.core.helper.html.datetimeago
|
||||||
@main(account, groupNames, "repositories", isGroupManager){
|
@gitbucket.core.account.html.main(account, groupNames, "repositories", isGroupManager){
|
||||||
@if(repositories.isEmpty){
|
@if(repositories.isEmpty){
|
||||||
No repositories
|
No repositories
|
||||||
} else {
|
} else {
|
||||||
@repositories.map { repository =>
|
@repositories.map { repository =>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="repository-icon">
|
<div class="repository-icon">
|
||||||
@helper.html.repositoryicon(repository, true)
|
@gitbucket.core.helper.html.repositoryicon(repository, true)
|
||||||
</div>
|
</div>
|
||||||
<div class="repository-content">
|
<div class="repository-content">
|
||||||
<div class="block-header">
|
<div class="block-header">
|
||||||
<a href="@url(repository)">@repository.name</a>
|
<a href="@helpers.url(repository)">@repository.name</a>
|
||||||
@if(repository.repository.isPrivate){
|
@if(repository.repository.isPrivate){
|
||||||
<i class="octicon octicon-lock"></i>
|
<i class="octicon octicon-lock"></i>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@if(repository.repository.originUserName.isDefined){
|
@if(repository.repository.originUserName.isDefined){
|
||||||
<div class="small muted">forked from <a href="@path/@repository.repository.parentUserName/@repository.repository.parentRepositoryName">@repository.repository.parentUserName/@repository.repository.parentRepositoryName</a></div>
|
<div class="small muted">forked from <a href="@context.path/@repository.repository.parentUserName/@repository.repository.parentRepositoryName">@repository.repository.parentUserName/@repository.repository.parentRepositoryName</a></div>
|
||||||
}
|
}
|
||||||
@if(repository.repository.description.isDefined){
|
@if(repository.repository.description.isDefined){
|
||||||
<div>@repository.repository.description</div>
|
<div>@repository.repository.description</div>
|
||||||
}
|
}
|
||||||
<div><span class="muted small">Updated @helper.html.datetimeago(repository.repository.lastActivityDate)</span></div>
|
<div><span class="muted small">Updated @datetimeago(repository.repository.lastActivityDate)</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
@(account: gitbucket.core.model.Account, sshKeys: List[gitbucket.core.model.SshKey])(implicit context: gitbucket.core.controller.Context)
|
@(account: gitbucket.core.model.Account, sshKeys: List[gitbucket.core.model.SshKey])(implicit context: gitbucket.core.controller.Context)
|
||||||
@import gitbucket.core.ssh.SshUtil
|
@import gitbucket.core.ssh.SshUtil
|
||||||
@import context._
|
@gitbucket.core.html.main("SSH Keys"){
|
||||||
@import gitbucket.core.view.helpers._
|
|
||||||
@html.main("SSH Keys"){
|
|
||||||
<div class="container body">
|
<div class="container body">
|
||||||
@menu("ssh", settings.ssh){
|
@gitbucket.core.account.html.menu("ssh", context.settings.ssh){
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">SSH Keys</div>
|
<div class="panel-heading strong">SSH Keys</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@@ -16,11 +14,11 @@
|
|||||||
<hr>
|
<hr>
|
||||||
}
|
}
|
||||||
<strong style="line-height: 30px;">@key.title</strong> (@SshUtil.fingerPrint(key.publicKey).getOrElse("Key is invalid."))
|
<strong style="line-height: 30px;">@key.title</strong> (@SshUtil.fingerPrint(key.publicKey).getOrElse("Key is invalid."))
|
||||||
<a href="@path/@account.userName/_ssh/delete/@key.sshKeyId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
<a href="@context.path/@account.userName/_ssh/delete/@key.sshKeyId" class="btn btn-sm btn-danger pull-right">Delete</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="@path/@account.userName/_ssh" validate="true">
|
<form method="POST" action="@context.path/@account.userName/_ssh" validate="true">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">Add an SSH Key</div>
|
<div class="panel-heading strong">Add an SSH Key</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user