commit
3f849ddfab
After Width: | Height: | Size: 169 B |
@ -0,0 +1,17 @@ |
||||
var Gogits = {}; |
||||
|
||||
(function($){ |
||||
Gogits.showTooltips = function(){ |
||||
$("body").tooltip({ |
||||
selector: "[data-toggle=tooltip]" |
||||
//container: "body"
|
||||
}); |
||||
}; |
||||
Gogits.showTab = function (selector, index) { |
||||
if (!index) { |
||||
index = 0; |
||||
} |
||||
$(selector).tab("show"); |
||||
$(selector).find("li:eq(" + index + ") a").tab("show"); |
||||
} |
||||
})(jQuery); |
@ -0,0 +1,6 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div id="gogs-body" class="container"> |
||||
An error is occupied : {{.Error}} |
||||
</div> |
||||
{{template "base/footer" .}} |
@ -1,6 +1,6 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div class="container"> |
||||
<div id="gogs-body" class="container"> |
||||
Website is still in the progress of building...please come back later! |
||||
</div> |
||||
{{template "base/footer" .}} |
@ -1,24 +1,57 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div class="container"> |
||||
<form action="/repo/create" method="post" class="form-horizontal"> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
Owner: <input name="userId" type="hidden" value="1"/>lunny |
||||
</div> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
repo name: <input name="name" type="text"/> |
||||
</div> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
description(optional): <input name="desc" type="text"/> |
||||
</div> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
<button type="submit" class="btn btn-info">Create repository</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
<div class="container" id="gogs-body"> |
||||
<form action="/repo/create" method="post" class="form-horizontal gogs-card" id="gogs-repo-create"> |
||||
<h3>Create New Repository</h3> |
||||
<div class="form-group"> |
||||
<label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label> |
||||
<div class="col-md-8"> |
||||
<p class="form-control-static">Owner-name</p> |
||||
<input type="hidden" value="1" name="user-id"/> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-md-2 control-label">Repository<strong class="text-danger">*</strong></label> |
||||
<div class="col-md-8"> |
||||
<input name="repo" type="text" class="form-control" placeholder="Type your repository name"> |
||||
<span class="help-block">Great repository names are short and memorable. </span> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-md-2 control-label">Description</label> |
||||
<div class="col-md-8"> |
||||
<textarea name="desc" class="form-control" placeholder="Type your repository name"></textarea> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-md-2 control-label">Language</label> |
||||
<div class="col-md-8"> |
||||
<select class="form-control" name="language"> |
||||
<option value="">Select a language</option> |
||||
<option value="ActionScript">ActionScript</option> |
||||
<option value="C#">C#</option> |
||||
<option value="Google Go">Google Go</option> |
||||
<option value="Java">Java</option> |
||||
<option value="PHP">PHP</option> |
||||
</select> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<div class="col-md-8 col-md-offset-2"> |
||||
<div class="checkbox"> |
||||
<label> |
||||
<input type="checkbox" value="true" name="init-md"> |
||||
<strong>Initialize this repository with a README</strong> |
||||
</label> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-2 col-md-8"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Create repository</button> |
||||
<a href="/" class="text-danger">Cancel</a> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
{{template "base/footer" .}} |
@ -0,0 +1,37 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div id="gogs-body" class="container"> |
||||
<div id="gogs-user-profile" class="col-md-3"> |
||||
<div class="profile-avatar text-center"> |
||||
<a href="#" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change Avatar"> |
||||
<img id="gogs-user-avatar" src="http://1.gravatar.com/avatar/x?s=200" alt="user-avatar" title="username"/> |
||||
</a> |
||||
<span id="gogs-user-name" class="center-block" href="#">Username</span> |
||||
</div> |
||||
<div class="profile-info"> |
||||
<ul class="list-group"> |
||||
<li class="list-group-item"><i class="fa fa-thumb-tack"></i>City, County, State, Nation</li> |
||||
<li class="list-group-item"><i class="fa fa-envelope"></i><a href="#">Email@EmailAddress.com</a></li> |
||||
<li class="list-group-item"><i class="fa fa-link"></i><a href="#">http://yousite/</a></li> |
||||
<li class="list-group-item"><i class="fa fa-clock-o"></i>Joined At 03.02, 2014</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
<div id="gogs-user-activity" class="col-md-9"> |
||||
<ul class="nav nav-tabs" id="gogs-user-act-tabs"> |
||||
<li class="active"><a href="#repo" data-toggle="tab"><i class="fa fa-gittip"></i>Repositories</a></li> |
||||
<li><a href="#activity" data-toggle="tab"><i class="fa fa-rss"></i>Activity</a></li> |
||||
</ul> |
||||
<div class="tab-content"> |
||||
<div class="tab-pane active" id="repo">repo</div> |
||||
<div class="tab-pane" id="activity">activity</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<script> |
||||
$(function () { |
||||
Gogits.showTooltips(); |
||||
Gogits.showTab("#gogs-user-act-tabs"); |
||||
}); |
||||
</script> |
||||
{{template "base/footer" .}} |
@ -0,0 +1,34 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div class="container" id="gogs-body"> |
||||
<form action="/user/signin" method="post" class="form-horizontal gogs-card" id="gogs-login-card"> |
||||
<h3>Log in</h3> |
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Username or Email: </label> |
||||
<div class="col-md-6"> |
||||
<input name="account" class="form-control" placeholder="Type your username or e-mail address"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Password: </label> |
||||
<div class="col-md-6"> |
||||
<input name="passwd" type="password" class="form-control" placeholder="Type your password"> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Log In</button> |
||||
<a href="/forget-password/">Forgot your password?</a> |
||||
</div> |
||||
</div> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<a href="/sign-up/">Need an account? Sign up free.</a> |
||||
</div> |
||||
</div> |
||||
<div class="form-group text-center" id="gogs-social-login"> |
||||
<a class="btn btn-default btn-lg">Social Login</a> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
{{template "base/footer" .}} |
@ -1,43 +1,44 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div class="container"> |
||||
<form action="/user/signup" method="post" class="form-horizontal"> |
||||
<div class="container" id="gogs-body"> |
||||
<form action="/user/signup" method="post" class="form-horizontal gogs-card" id="gogs-login-card"> |
||||
<h3>Sign Up</h3> |
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Username: </label> |
||||
<div class="col-md-3"> |
||||
<div class="col-md-6"> |
||||
<input name="username" class="form-control" placeholder="Type your username"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Email: </label> |
||||
<div class="col-md-3"> |
||||
<div class="col-md-6"> |
||||
<input name="email" class="form-control" placeholder="Type your e-mail address"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Password: </label> |
||||
<div class="col-md-3"> |
||||
<div class="col-md-6"> |
||||
<input name="passwd" type="password" class="form-control" placeholder="Type your password"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Re-type: </label> |
||||
<div class="col-md-3"> |
||||
<div class="col-md-6"> |
||||
<input type="password" class="form-control" placeholder="Re-type your password"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-3"> |
||||
<button type="submit" class="btn btn-info">Sign Up</button> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Create an account</button> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="col-md-offset-4 col-md-3"> |
||||
<a href="/user/signin">Already have an account? Sign in now!</a> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<a href="/login/">Already have an account? Sign in now!</a> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
|
Loading…
Reference in new issue