mirror of https://github.com/gogits/gogs.git
Lunny Xiao
11 years ago
34 changed files with 716 additions and 166 deletions
@ -0,0 +1,18 @@ |
|||||||
|
# Object files |
||||||
|
*.o |
||||||
|
*.ko |
||||||
|
|
||||||
|
# Libraries |
||||||
|
*.lib |
||||||
|
*.a |
||||||
|
|
||||||
|
# Shared objects (inc. Windows DLLs) |
||||||
|
*.dll |
||||||
|
*.so |
||||||
|
*.so.* |
||||||
|
*.dylib |
||||||
|
|
||||||
|
# Executables |
||||||
|
*.exe |
||||||
|
*.out |
||||||
|
*.app |
@ -0,0 +1,27 @@ |
|||||||
|
Copyright (c) 2014 |
||||||
|
All rights reserved. |
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without |
||||||
|
modification, are permitted provided that the following conditions are met: |
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this |
||||||
|
list of conditions and the following disclaimer. |
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice, |
||||||
|
this list of conditions and the following disclaimer in the documentation |
||||||
|
and/or other materials provided with the distribution. |
||||||
|
|
||||||
|
* Neither the name of the {organization} nor the names of its |
||||||
|
contributors may be used to endorse or promote products derived from |
||||||
|
this software without specific prior written permission. |
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
@ -0,0 +1,19 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
{{template "base/navbar" .}} |
||||||
|
<div id="gogs-body" class="container"> |
||||||
|
<div id="gogs-user-setting-nav" class="col-md-3"> |
||||||
|
<h4>Account Setting</h4> |
||||||
|
<ul class="list-group"> |
||||||
|
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/password">Password</a></li> |
||||||
|
<li class="list-group-item list-group-item-success"><a href="/user/setting/notification">Notifications</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/security">Security</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/delete">Delete Account</a></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<div id="gogs-user-setting-container" class="col-md-9"> |
||||||
|
<h4>Notification</h4> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
@ -0,0 +1,51 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
{{template "base/navbar" .}} |
||||||
|
<div id="gogs-body" class="container"> |
||||||
|
<div id="gogs-user-setting-nav" class="col-md-3"> |
||||||
|
<h4>Account Setting</h4> |
||||||
|
<ul class="list-group"> |
||||||
|
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li> |
||||||
|
<li class="list-group-item list-group-item-success"><a href="/user/setting/password">Password</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/security">Security</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/delete">Delete Account</a></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<div id="gogs-user-setting-container" class="col-md-9"> |
||||||
|
<div id="gogs-setting-pwd"> |
||||||
|
<h4>Password</h4> |
||||||
|
<form class="form-horizontal" id="gogs-password-form" method="post" action="/user/setting/password">{{if .IsSuccess}} |
||||||
|
<p class="alert alert-success">Password is changed successfully. You can now sign in via new password.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}} |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-2 control-label">Old Password<strong class="text-danger">*</strong></label> |
||||||
|
<div class="col-md-8"> |
||||||
|
<input type="password" name="oldpasswd" class="form-control" placeholder="Type your current password" required="required"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-2 control-label">New Password<strong class="text-danger">*</strong></label> |
||||||
|
<div class="col-md-8"> |
||||||
|
<input type="password" name="newpasswd" class="form-control" placeholder="Type your new password" required="required"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-2 control-label">Re-Type<strong class="text-danger">*</strong></label> |
||||||
|
<div class="col-md-8"> |
||||||
|
<input type="password" name="retypepasswd" class="form-control" placeholder="Re-type your new password" required="required"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="form-group"> |
||||||
|
<div class="col-md-offset-2 col-md-8"> |
||||||
|
<button type="submit" class="btn btn-primary">Change Password</button> |
||||||
|
<a href="/forget-password/">Forgot your password?</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
@ -1,26 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
{{template "base/navbar" .}} |
|
||||||
<div class="container" id="gogs-body"> |
|
||||||
<form action="/user/publickey/add" method="post" class="form-horizontal"> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="col-md-4 control-label">Name of this public key: </label> |
|
||||||
<div class="col-md-3"> |
|
||||||
<input name="keyname" class="form-control" placeholder="Type your preferred name" value="{{.KeyName}}"> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="form-group"> |
|
||||||
<label class="col-md-4 control-label">Paste your key here: </label> |
|
||||||
<div class="col-md-3"> |
|
||||||
<textarea name="key_content" cols="30" rows="10" class="form-control">{{.KeyContent}}</textarea> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="form-group"> |
|
||||||
<div class="col-md-offset-4 col-md-3"> |
|
||||||
<button type="submit" class="btn btn-info">Add public key</button> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
@ -1,8 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
{{template "base/navbar" .}} |
|
||||||
<div class="container"> |
|
||||||
<div class="form-group"> |
|
||||||
publickey added |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
@ -1,12 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
{{template "base/navbar" .}} |
|
||||||
<div class="container" id="gogs-body"> |
|
||||||
<div><a href="/user/publickey/add">Add publick key</a></div> |
|
||||||
<ul> |
|
||||||
{{range .Keys}} |
|
||||||
<li>{{.Name}}</li> |
|
||||||
<li>{{.Content}}</li> |
|
||||||
{{end}} |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
@ -0,0 +1,19 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
{{template "base/navbar" .}} |
||||||
|
<div id="gogs-body" class="container"> |
||||||
|
<div id="gogs-user-setting-nav" class="col-md-3"> |
||||||
|
<h4>Account Setting</h4> |
||||||
|
<ul class="list-group"> |
||||||
|
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/password">Password</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li> |
||||||
|
<li class="list-group-item list-group-item-success"><a href="/user/setting/security">Security</a></li> |
||||||
|
<li class="list-group-item"><a href="/user/delete">Delete Account</a></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<div id="gogs-user-setting-container" class="col-md-9"> |
||||||
|
<h4>Security</h4> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
Loading…
Reference in new issue