diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/active.tmpl | 36 | ||||
-rw-r--r-- | templates/user/dashboard.tmpl | 54 | ||||
-rw-r--r-- | templates/user/delete.tmpl | 46 | ||||
-rw-r--r-- | templates/user/forgot_passwd.tmpl | 32 | ||||
-rw-r--r-- | templates/user/notification.tmpl | 9 | ||||
-rw-r--r-- | templates/user/password.tmpl | 43 | ||||
-rw-r--r-- | templates/user/profile.tmpl | 66 | ||||
-rw-r--r-- | templates/user/publickey.tmpl | 58 | ||||
-rw-r--r-- | templates/user/pulls.tmpl | 17 | ||||
-rw-r--r-- | templates/user/reset_passwd.tmpl | 26 | ||||
-rw-r--r-- | templates/user/security.tmpl | 9 | ||||
-rw-r--r-- | templates/user/setting.tmpl | 57 | ||||
-rw-r--r-- | templates/user/setting_nav.tmpl | 11 | ||||
-rw-r--r-- | templates/user/signin.tmpl | 54 | ||||
-rw-r--r-- | templates/user/signup.tmpl | 53 | ||||
-rw-r--r-- | templates/user/stars.tmpl | 17 |
16 files changed, 0 insertions, 588 deletions
diff --git a/templates/user/active.tmpl b/templates/user/active.tmpl deleted file mode 100644 index 9cac069dce..0000000000 --- a/templates/user/active.tmpl +++ /dev/null @@ -1,36 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container"> - <form action="/user/activate" method="post" class="form-horizontal card" id="login-card"> - {{.CsrfTokenHtml}} - <h3>Activate Your Account</h3> - {{if .IsActivatePage}} - {{if .ServiceNotEnabled}} - <p>Sorry, Register Mail Confirmation has been disabled.</p> - {{else if .ResendLimited}} - <p>Sorry, you are sending activation e-mail too frequently, please wait 3 minutes.</p> - {{else}} - <p>New confirmation e-mail has been sent to <b>{{.SignedUser.Email}}</b>, please check your inbox within {{.Hours}} hours to complete your registeration.</p> - <hr/> - <a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> - {{end}} - {{else}} - {{if .IsSendRegisterMail}} - <p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours to complete your registeration.</p> - <hr/> - <a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> - {{else if .IsActivateFailed}} - <p>Sorry, your confirmation code has been exipired or not valid.</p> - {{else}} - <p>Hi, {{.SignedUser.Name}}, you have an unconfirmed email address(<b>{{.SignedUser.Email}}</b>). If you haven't received a confirmation e-mail or need to resend a new one, please click botton below.</p> - <hr/> - <div class="form-group"> - <div class="col-md-offset-4 col-md-6"> - <button type="submit" class="btn btn-lg btn-primary">Click here to resend your active e-mail</button> - </div> - </div> - {{end}} - {{end}} - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl deleted file mode 100644 index e2d7a5093f..0000000000 --- a/templates/user/dashboard.tmpl +++ /dev/null @@ -1,54 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body-nav"> - <div class="container"> - <ul class="nav nav-pills pull-right"> - <li class="active"><a href="/">Feed</a></li> - <li><a href="/issues">Issues</a></li> - <!-- <li><a href="/pulls">Pull Requests</a></li> - <li><a href="/stars">Stars</a></li> --> - </ul> - <h3>News Feed</h3> - </div> -</div> -<div id="body" class="container" data-page="user"> - {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}} - <div id="feed-left" class="col-md-8"> - <ul class="list-unstyled activity-list"> - {{range .Feeds}} - <li> - <i class="icon fa fa-{{ActionIcon .OpType}}"></i> - <div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div> - <span class="clearfix"></span> - </li> - {{else}} - <li>No any activity yet.</li> - {{end}} - </ul> - </div> - <div id="feed-right" class="col-md-4"> - <div class="panel panel-default repo-panel"> - <div class="panel-heading">Your Repositories - <div class="btn-group pull-right" id="user-dashboard-repo-new"> - <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square"></i>New</button> - <div class="dropdown-menu dropdown-menu-right"> - <ul class="list-unstyled"> - <li><a href="/repo/create"><i class="fa fa-book"></i>Repository</a></li> - <li><a href="/repo/mirror"><i class="fa fa-clipboard"></i>Mirror</a></li> - <li><a href="#"><i class="fa fa-users"></i>Organization</a></li> - </ul> - </div> - </div> - </div> - <div class="panel-body"> - <ul class="list-group">{{range .MyRepos}} - <li class="list-group-item"><a href="/{{$.SignedUserName}}/{{.Name}}"> - <!-- <span class="stars pull-right"><i class="fa fa-star"></i>{{.NumStars}}</span> --> - <i class="fa fa-book"></i>{{.Name}}</a> - </li>{{end}} - </ul> - </div> - </div> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/delete.tmpl b/templates/user/delete.tmpl deleted file mode 100644 index 17c9ea8925..0000000000 --- a/templates/user/delete.tmpl +++ /dev/null @@ -1,46 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - <div id="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"><a href="/user/setting/security">Security</a></li> --> - <li class="list-group-item list-group-item-success"><a href="/user/delete">Delete Account</a></li> - </ul> - </div> - <div id="user-setting-container" class="col-md-9"> - <h4>Delete Account</h4> - <p class="alert alert-danger">{{if not .HasError}}The operation will delete your account permanently. Sorry to see you go, but we know you'll back soon.{{else}}{{.ErrorMsg}}{{end}}</p> - <div class="form-group"> - <button type="submit" class="btn btn-danger btn-lg" href="#delete-account-modal" id="delete-account" data-toggle="modal">Delete Account</button> - </div> - </div> - <div class="modal fade" id="delete-account-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-dialog"> - <form action="/user/delete" method="post" class="modal-content" id="user-delete"> - {{.CsrfTokenHtml}} - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title" id="myModalLabel">Delete Account</h4> - </div> - - <div class="modal-body"> - <div class="form-group"> - <label>Make sure your are owner of this account. Please enter your password.<strong class="text-danger">*</strong></label> - <input name="password" class="form-control" type="password" placeholder="Type your account password" required="required"> - </div> - </div> - - <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> - <button type="submit" class="btn btn-danger">Delete</button> - </div> - </form> - </div> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/forgot_passwd.tmpl b/templates/user/forgot_passwd.tmpl deleted file mode 100644 index a099ff2744..0000000000 --- a/templates/user/forgot_passwd.tmpl +++ /dev/null @@ -1,32 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container"> - <form action="/user/forget_password" method="post" class="form-horizontal card" id="login-card"> - {{.CsrfTokenHtml}} - <h3>Reset Your Password</h3> - <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> - {{if .IsResetSent}} - <p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours.</p> - <hr/> - <a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> - {{else if .IsResetRequest}} - <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}"> - <label class="col-md-3 control-label">Email: </label> - <div class="col-md-7"> - <input name="email" class="form-control" placeholder="Type your e-mail address" required="required"> - </div> - </div> - <hr/> - <div class="form-group"> - <div class="col-md-offset-4 col-md-6"> - <button type="submit" class="btn btn-lg btn-primary">Click here to send reset confirmation e-mail</button> - </div> - </div> - {{else if .IsResetDisable}} - <p>Sorry, mail service is not enabled.</p> - {{else if .ResendLimited}} - <p>Sorry, you are sending e-mail too frequently, please wait 3 minutes.</p> - {{end}} - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/notification.tmpl b/templates/user/notification.tmpl deleted file mode 100644 index 7c2e8425d4..0000000000 --- a/templates/user/notification.tmpl +++ /dev/null @@ -1,9 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - {{template "user/setting_nav" .}} - <div id="user-setting-container" class="col-md-9"> - <h4>Notification</h4> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/password.tmpl b/templates/user/password.tmpl deleted file mode 100644 index b2cdc72d9e..0000000000 --- a/templates/user/password.tmpl +++ /dev/null @@ -1,43 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - {{template "user/setting_nav" .}} - <div id="user-setting-container" class="col-md-9"> - <div id="setting-pwd"> - <h4>Password</h4> - <form class="form-horizontal" id="password-form" method="post" action="/user/setting/password"> - {{.CsrfTokenHtml}} - {{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-3 control-label">Old Password<strong class="text-danger">*</strong></label> - <div class="col-md-7"> - <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-3 control-label">New Password<strong class="text-danger">*</strong></label> - <div class="col-md-7"> - <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-3 control-label">Re-Type<strong class="text-danger">*</strong></label> - <div class="col-md-7"> - <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-3 col-md-7"> - <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" .}}
\ No newline at end of file diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl deleted file mode 100644 index 88ee318f4a..0000000000 --- a/templates/user/profile.tmpl +++ /dev/null @@ -1,66 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - <div id="user-profile" class="col-md-3"> - <div class="profile-avatar text-center"> - <a href="http://gravatar.com/emails/" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change your avatar at gravatar.com"> - <img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/> - </a> - <span id="user-name" class="center-block">{{.Owner.Name}}</span> - </div> - <div class="profile-info"> - <ul class="list-group"> - {{if .Owner.Location}} - <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li> - {{end}} - {{if .Owner.Email}} - <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}">{{.Owner.Email}}</a></li> - {{end}} - {{if .Owner.Website}} - <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li> - {{end}} - <li class="list-group-item"><i class="fa fa-clock-o"></i>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li> - </ul> - </div> - </div> - <div id="user-activity" class="col-md-9"> - <ul class="nav nav-tabs" id="user-act-tabs"> - <li{{if not .TabName}} class="active"{{end}}><a href="{{.Owner.HomeLink}}"><i class="fa fa-gittip"></i>Repositories</a></li> - <li{{if eq .TabName "activity"}} class="active"{{end}}><a href="{{.Owner.HomeLink}}?tab=activity"><i class="fa fa-rss"></i>Public Activity</a></li> - </ul> - <div class="tab-content"> - {{if eq .TabName "activity"}} - <div class="tab-pane active"> - <ul class="list-unstyled activity-list"> - {{range .Feeds}} - <li> - <i class="icon fa fa-{{ActionIcon .OpType}}"></i> - <div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div> - <span class="clearfix"></span> - </li> - {{else}} - <li>No any public activity yet.</li> - {{end}} - </ul> - </div> - {{else}} - {{$owner := .Owner}} - <div class="tab-pane active"> - <ul class="list-unstyled repo-list"> - {{range .Repos}} - <li> - <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div> - <h4> - <a href="/{{$owner.Name}}/{{.Name}}">{{.Name}}</a> - </h4> - <p class="desc">{{.Description}}</p> - <div class="info">Last updated {{.Updated|TimeSince}}</div> - </li> - {{end}} - </ul> - </div> - {{end}} - </div> - </div> -</div> -{{template "base/footer" .}} diff --git a/templates/user/publickey.tmpl b/templates/user/publickey.tmpl deleted file mode 100644 index ecdeb035d2..0000000000 --- a/templates/user/publickey.tmpl +++ /dev/null @@ -1,58 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - {{template "user/setting_nav" .}} - <div id="user-setting-container" class="col-md-9"> - <div id="ssh-keys"> - <h4>SSH Keys</h4>{{if .AddSSHKeySuccess}} - <p class="alert alert-success">New SSH Key has been added !</p>{{else if .HasError}}<p class="alert alert-danger">{{.ErrorMsg}}</p>{{end}} - <ul id="ssh-keys-list" class="list-group"> - <li class="list-group-item"><span class="name">SSH Key's name</span></li> - {{range .Keys}} - <li class="list-group-item"> - <span class="name">{{.Name}}</span> - <span class="print">({{.Fingerprint}})</span> - <button href="#" class="btn btn-danger delete pull-right" rel="{{.Id}}" data-del="{{.Id}}">Delete</button> - </li> - {{end}} - <li class="list-group-item"> - <a class="btn btn-link btn-primary" href="#ssh-add-modal" id="ssh-add" data-toggle="modal">Add SSH Key</a> - </li> - </ul> - <div class="modal fade" id="ssh-add-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-dialog"> - <form class="modal-content form-horizontal" id="ssh-form" method="post" action="/user/setting/ssh/"> - {{.CsrfTokenHtml}} - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title" id="myModalLabel">Add SSH Key</h4> - </div> - - <div class="modal-body"> - <div class="form-group"> - <label class="col-md-3 control-label">The name of key<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="keyname" class="form-control" placeholder="Type your preferred name" required="required"> - </div> - </div> - - <div class="form-group"> - <label class="col-md-3 control-label">SSH Key<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <textarea name="key_content" class="form-control" placeholder="Type your key content" required="required"></textarea> - </div> - </div> - </div> - - <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> - <button type="submit" class="btn btn-primary">Save SSH Key</button> - </div> - </form> - </div> - </div> - <p><strong>Need help?</strong> Check out the guide to <a href="https://help.github.com/articles/generating-ssh-keys" target="_blank">generating SSH keys</a> or troubleshoot <a href="https://help.github.com/ssh-issues/" target="_blank">common SSH Problems</a></p> - </div> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/pulls.tmpl b/templates/user/pulls.tmpl deleted file mode 100644 index 47462a9be6..0000000000 --- a/templates/user/pulls.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body-nav"> - <div class="container"> - <ul class="nav nav-pills pull-right"> - <li><a href="/">Feed</a></li> - <li><a href="/issues">Issues</a></li> - <li class="active"><a href="/pulls">Pull Requests</a></li> - <li><a href="/stars">Stars</a></li> - </ul> - <h3>Pull Requests</h3> - </div> -</div> -<div id="body" class="container" data-page="user"> - {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}} -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/reset_passwd.tmpl b/templates/user/reset_passwd.tmpl deleted file mode 100644 index 9190c7c13c..0000000000 --- a/templates/user/reset_passwd.tmpl +++ /dev/null @@ -1,26 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container"> - <form action="/user/reset_password?code={{.Code}}" method="post" class="form-horizontal card" id="login-card"> - {{.CsrfTokenHtml}} - <h3>Reset Your Pasword</h3> - <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> - {{if .IsResetForm}} - <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" required="required"> - </div> - </div> - <hr/> - <div class="form-group"> - <div class="col-md-offset-4 col-md-6"> - <button type="submit" class="btn btn-lg btn-primary">Click here to reset your password</button> - </div> - </div> - {{else}} - <p>Sorry, your confirmation code has been exipired or not valid.</p> - {{end}} - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/security.tmpl b/templates/user/security.tmpl deleted file mode 100644 index 7de41ebd35..0000000000 --- a/templates/user/security.tmpl +++ /dev/null @@ -1,9 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - {{template "user/setting_nav" .}} - <div id="user-setting-container" class="col-md-9"> - <h4>Security</h4> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/setting.tmpl b/templates/user/setting.tmpl deleted file mode 100644 index d582833870..0000000000 --- a/templates/user/setting.tmpl +++ /dev/null @@ -1,57 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body" class="container" data-page="user"> - {{template "user/setting_nav" .}} - <div id="user-setting-container" class="col-md-9"> - <div id="setting-pwd"> - <h4>Account Profile</h4> - <form class="form-horizontal" id="password-form" method="post" action="/user/setting"> - {{.CsrfTokenHtml}} - {{if .IsSuccess}}<p class="alert alert-success">Your profile has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}} - <p>Your Email will be public and used for Account related notifications and any web based operations made via the web.</p> - <div class="form-group"> - <label class="col-md-2 control-label" for="user-setting-username">Username<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="username" class="form-control" placeholder="Type your user name" required="required" value="{{.SignedUser.Name}}" title="{{.SignedUser.Name}}" id="user-setting-username"> - <p class="help-block hidden"><span class="text-danger">Cautious : </span>your username is changing !</p> - </div> - </div> - - <div class="form-group"> - <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="email" class="form-control" placeholder="Type your e-mail address" required="required" value="{{.SignedUser.Email}}"> - </div> - </div> - - <div class="form-group"> - <label class="col-md-2 control-label">Website</label> - <div class="col-md-8"> - <input name="website" class="form-control" placeholder="Type your website URL" value="{{.SignedUser.Website}}"> - </div> - </div> - - <div class="form-group"> - <label class="col-md-2 control-label">Location</label> - <div class="col-md-8"> - <input name="location" class="form-control" placeholder="Type your current location" value="{{.SignedUser.Location}}"> - </div> - </div> - - <div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}"> - <label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.SignedUser.AvatarEmail}}"> - </div> - </div> - - <div class="form-group"> - <div class="col-md-offset-2 col-md-8"> - <button type="submit" class="btn btn-primary">Update Profile</button> - </div> - </div> - </form> - </div> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/setting_nav.tmpl b/templates/user/setting_nav.tmpl deleted file mode 100644 index c0f2ae03dd..0000000000 --- a/templates/user/setting_nav.tmpl +++ /dev/null @@ -1,11 +0,0 @@ -<div id="user-setting-nav" class="col-md-3"> - <h4>Account Setting</h4> - <ul class="list-group"> - <li class="list-group-item{{if .IsUserPageSetting}} list-group-item-success{{end}}"><a href="/user/setting">Account Profile</a></li> - <li class="list-group-item{{if .IsUserPageSettingPasswd}} list-group-item-success{{end}}"><a href="/user/setting/password">Password</a></li> - <!-- <li class="list-group-item{{if .IsUserPageSettingNotify}} list-group-item-success{{end}}"><a href="/user/setting/notification">Notifications</a></li> --> - <li class="list-group-item{{if .IsUserPageSettingSSH}} list-group-item-success{{end}}"><a href="/user/setting/ssh/">SSH Keys</a></li> - <!-- <li class="list-group-item{{if .IsUserPageSettingSecurity}} list-group-item-success{{end}}"><a href="/user/setting/security">Security</a></li> --> - <li class="list-group-item{{if .IsUserPageSettingDelete}} list-group-item-success{{end}}"><a href="/user/delete">Delete Account</a></li> - </ul> -</div>
\ No newline at end of file diff --git a/templates/user/signin.tmpl b/templates/user/signin.tmpl deleted file mode 100644 index eb4cb9ccee..0000000000 --- a/templates/user/signin.tmpl +++ /dev/null @@ -1,54 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div class="container" id="body" data-page="user-signin"> - <form action="/user/login" method="post" class="form-horizontal card" id="login-card"> - {{.CsrfTokenHtml}} - <h3>Log in</h3> - <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> - <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}"> - <label class="col-md-4 control-label">Username: </label> - <div class="col-md-6"> - <input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required"> - </div> - </div> - - <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}"> - <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" required="required"> - </div> - </div> - - <div class="form-group"> - <div class="col-md-6 col-md-offset-4"> - <div class="checkbox"> - <label> - <input type="checkbox" name="remember" {{if .remember}}checked{{end}}> - <strong>Remember me</strong> - </label> - </div> - </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="/user/forget_password/">Forgot your password?</a> - </div> - </div> - - <div class="form-group"> - <div class="col-md-offset-4 col-md-6"> - <a href="/user/sign_up">Need an account? Sign up now.</a> - </div> - </div> - - {{if .OauthEnabled}} - <div class="form-group text-center" id="social-login"> - <h4>Log In with Social Accounts</h4> - {{if .OauthGitHubEnabled}}<a href="/user/login/github"><i class="fa fa-github-square fa-3x"></i></a>{{end}} - </div> - {{end}} - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/signup.tmpl b/templates/user/signup.tmpl deleted file mode 100644 index 6ed595a350..0000000000 --- a/templates/user/signup.tmpl +++ /dev/null @@ -1,53 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div class="container" id="body" data-page="user-signup"> - <form action="/user/sign_up" method="post" class="form-horizontal card" id="login-card"> - {{.CsrfTokenHtml}} - {{if .DisenableRegisteration}} - Sorry, registeration has been disenabled, you can only get account from administrator. - {{else}} - <h3>Sign Up</h3> - <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> - <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}"> - <label class="col-md-4 control-label">Username: </label> - <div class="col-md-6"> - <input name="username" class="form-control" placeholder="Type your username" value="{{.username}}" required="required"> - </div> - </div> - - <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}"> - <label class="col-md-4 control-label">Email: </label> - <div class="col-md-6"> - <input name="email" class="form-control" placeholder="Type your e-mail address" value="{{.email}}" required="required" title="Email is not valid"> - </div> - </div> - - <div class="form-group {{if .Err_Password}}has-error has-feedback{{end}}"> - <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" required="required" title="Password must contain at least 6 characters"> - </div> - </div> - - <div class="form-group {{if .Err_RetypePasswd}}has-error has-feedback{{end}}"> - <label class="col-md-4 control-label">Re-type: </label> - <div class="col-md-6"> - <input name="retypepasswd" type="password" class="form-control" placeholder="Re-type your password" required="required" title="Re-type Password must be same to 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">Create an account</button> - </div> - </div> - - <div class="form-group"> - <div class="col-md-offset-4 col-md-6"> - <a href="/user/login">Already have an account? Sign in now!</a> - </div> - </div> - {{end}} - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/user/stars.tmpl b/templates/user/stars.tmpl deleted file mode 100644 index 253efd6eec..0000000000 --- a/templates/user/stars.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div id="body-nav"> - <div class="container"> - <ul class="nav nav-pills pull-right"> - <li><a href="/">Feed</a></li> - <li><a href="/issues">Issues</a></li> - <li><a href="/pulls">Pull Requests</a></li> - <li class="active"><a href="/stars">Stars</a></li> - </ul> - <h3>Stars</h3> - </div> -</div> -<div id="body" class="container" data-page="user"> - {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}} -</div> -{{template "base/footer" .}}
\ No newline at end of file |