diff options
author | Unknwon <u@gogs.io> | 2015-08-15 19:07:21 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 19:07:21 +0800 |
commit | 2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8 (patch) | |
tree | 896e691d498ddd1c740b5df2f8241c828d14813e /templates | |
parent | c8bb475abb1c661930ca7c835405d7d62f9b154d (diff) | |
download | gitea-2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8.tar.gz gitea-2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8.zip |
comletely remove v1 UI files of Gogs
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/alert_old.tmpl | 2 | ||||
-rw-r--r-- | templates/base/footer_old.tmpl | 34 | ||||
-rw-r--r-- | templates/base/head_old.tmpl | 40 | ||||
-rw-r--r-- | templates/base/navbar.tmpl | 49 | ||||
-rw-r--r-- | templates/org/new.tmpl | 32 | ||||
-rw-r--r-- | templates/repo/branch.tmpl | 42 | ||||
-rw-r--r-- | templates/repo/issue/create.tmpl | 126 | ||||
-rw-r--r-- | templates/repo/issue/view_old.tmpl | 284 | ||||
-rw-r--r-- | templates/repo/list.tmpl | 10 | ||||
-rw-r--r-- | templates/repo/toolbar.tmpl | 45 |
10 files changed, 0 insertions, 664 deletions
diff --git a/templates/base/alert_old.tmpl b/templates/base/alert_old.tmpl deleted file mode 100644 index bb1eb6aab1..0000000000 --- a/templates/base/alert_old.tmpl +++ /dev/null @@ -1,2 +0,0 @@ -{{if .Flash.ErrorMsg}}<div class="alert alert-danger form-error">{{.Flash.ErrorMsg}}</div>{{end}} -{{if .Flash.SuccessMsg}}<div class="alert alert-success">{{.Flash.SuccessMsg}}</div>{{end}}
\ No newline at end of file diff --git a/templates/base/footer_old.tmpl b/templates/base/footer_old.tmpl deleted file mode 100644 index adc831425a..0000000000 --- a/templates/base/footer_old.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -<div class="wrapper-push"></div> -</div> -<footer id="footer"> - <div class="container footer-wrap"> - <div class="row"> - <div class="col-md-6"> - <p>© 2014 GoGits · Version: {{AppVer}} · - Page: <b>{{LoadTimes .PageStartTime}}</b> · - Template: <b>{{call .TmplLoadTimes}}</b> - </p> - </div> - - {{if .ShowFooterBranding}} - <div class="col-md-2" style="margin: -5px;"> - <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github fa-2x"></i></a> - </div> - {{end}} - - <div class="col-md-4"> - <p class="desc"> - <a href="http://gogs.io">Official Website</a> - </p> - </div> - </div> - - <div class="row"> - <div class="col-md-6"> - Go Version: {{GoVer}} - </div> - </div> - </div> -</footer> -</body> -</html>
\ No newline at end of file diff --git a/templates/base/head_old.tmpl b/templates/base/head_old.tmpl deleted file mode 100644 index 9a4665de05..0000000000 --- a/templates/base/head_old.tmpl +++ /dev/null @@ -1,40 +0,0 @@ -<!DOCTYPE html> -<html> - <head{{if AppSubUrl}} data-suburl="{{AppSubUrl}}"{{end}}> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge"/> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> - <meta name="author" content="Gogs - Go Git Service" /> - <meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" /> - <meta name="keywords" content="go, git"> - <meta name="referrer" content="no-referrer" /> - <meta name="_csrf" content="{{.CsrfToken}}" /> - {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} - - <!-- Stylesheets --> - {{if CdnMode}} - <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> - <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> - - <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> - <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> - {{else}} - <link href="{{AppSubUrl}}/css/bootstrap.min.css" rel="stylesheet" /> - <link href="{{AppSubUrl}}/css/font-awesome.min.css" rel="stylesheet" /> - - <script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script> - <script src="{{AppSubUrl}}/js/bootstrap.min.js"></script> - {{end}} - - <link href="{{AppSubUrl}}/css/todc-bootstrap.min.css" rel="stylesheet" /> - <link href="{{AppSubUrl}}/css/markdown.css" rel="stylesheet" /> - <link href="{{AppSubUrl}}/css/gogs.css" rel="stylesheet" /> - - <script src="{{AppSubUrl}}/js/lib.js"></script> - <script src="{{AppSubUrl}}/js/app.js"></script> - <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> - </head> - <body> - <div id="wrapper"> - <noscript>Please enable JavaScript in your browser!</noscript>
\ No newline at end of file diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl deleted file mode 100644 index b69e9dc4a0..0000000000 --- a/templates/base/navbar.tmpl +++ /dev/null @@ -1,49 +0,0 @@ -<div class="masthead navbar" id="masthead"> - <div class="container"> - <nav class="nav"> - <a id="nav-logo" class="nav-item pull-left{{if .PageIsHome}} active{{end}}" href="{{AppSubUrl}}/"><img src="{{AppSubUrl}}/img/favicon.png" alt="Gogs Logo" id="logo"></a> - <a class="nav-item pull-left{{if .PageIsUserDashboard}} active{{end}}" href="{{AppSubUrl}}/">Dashboard</a> - <a class="nav-item pull-left{{if .PageIsHelp}} active{{end}}" target="_blank" href="http://gogs.io/docs">Help</a> - {{if .IsSigned}} - {{if .HasAccess}} - <!-- <form class="nav-item pull-left{{if .PageIsNewRepo}} active{{end}}" id="nav-search-form"> - <div class="input-group"> - <div class="input-group-btn"> - <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">{{if .Repository}}This Repository{{else}}All Repositories{{end}} <span class="caret"></span></button> - <ul class="dropdown-menu"> - {{if .Repository}} - <li><a href="#">This Repository</a></li> - <li class="divider"></li> - {{end}} - <li><a href="#">All Repositories</a></li> - </ul> - </div> - <input type="search" class="form-control input-sm" name="q" placeholder="search code, commits and issues"/> - </div> - </form> --> - {{end}} - <a id="nav-out" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/logout/"><i class="fa fa-power-off fa-lg"></i></a> - <a id="nav-avatar" class="nav-item navbar-right{{if .PageIsUserProfile}} active{{end}}" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}"> - <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/> - </a> - <a class="navbar-right nav-item{{if .PageIsUserSetting}} active{{end}}" href="{{AppSubUrl}}/user/settings" data-toggle="tooltip" data-placement="bottom" title="Settings"><i class="fa fa-cogs fa-lg"></i></a> - {{if .IsAdmin}} - <a class="navbar-right nav-item{{if .PageIsAdmin}} active{{end}}" href="{{AppSubUrl}}/admin" data-toggle="tooltip" data-placement="bottom" title="Admin"><i class="fa fa-gear fa-lg"></i></a> - {{end}} - <div class="navbar-right nav-item pull-right{{if .PageIsNewRepo}} active{{end}}" id="nav-repo-new" data-toggle="tooltip" data-placement="bottom" title="New Repo"> - <button type="button" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square fa-lg"></i></button> - <div class="dropdown-menu"> - <ul class="list-unstyled"> - <li><a href="{{AppSubUrl}}/repo/create"><i class="fa fa-book"></i>Repository</a></li> - <li><a href="{{AppSubUrl}}/repo/migrate"><i class="fa fa-clipboard"></i>Migration</a></li> - <!-- <li><a href="#"><i class="fa fa-users"></i>Organization</a></li> --> - </ul> - </div> - </div> - {{else}} - <a id="nav-signin" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/login/" rel="nofollow">Sign In</a> - <a id="nav-signup" class="nav-item navbar-right" href="{{AppSubUrl}}/user/sign_up/" rel="nofollow">Sign Up</a> - {{end}} - </nav> - </div> -</div> diff --git a/templates/org/new.tmpl b/templates/org/new.tmpl deleted file mode 100644 index 4e42775a49..0000000000 --- a/templates/org/new.tmpl +++ /dev/null @@ -1,32 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div class="container" id="body"> - <form action="{{AppSubUrl}}/org/create" method="post" class="form-horizontal card" id="org-create"> - {{.CsrfTokenHtml}} - <h3>Create New Organization</h3> - {{template "base/alert" .}} - <div class="form-group {{if .Err_OrgName}}has-error has-feedback{{end}}"> - <label class="col-md-2 control-label">Organization<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="orgname" type="text" class="form-control" placeholder="Type your organization name" value="{{.orgname}}" required="required"> - <span class="help-block">Great organization names are short and memorable. </span> - </div> - </div> - - <div class="form-group{{if .Err_Email}} has-error has-feedback{{end}}"> - <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label> - <div class="col-md-8"> - <input name="email" type="text" class="form-control" placeholder="Type organization's email" value="{{.email}}" required="required"> - <span class="help-block">Organization's Email receives all notifications and confirmations.</span> - </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 An Organization</button> - <a href="{{AppSubUrl}}/" class="text-danger">Cancel</a> - </div> - </div> - </form> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/repo/branch.tmpl b/templates/repo/branch.tmpl deleted file mode 100644 index 8d2d59d7fd..0000000000 --- a/templates/repo/branch.tmpl +++ /dev/null @@ -1,42 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -<div id="body" class="container"> - <div id="source"> - <div class="panel panel-default branch-box info-box"> - <div class="panel-heading info-head"> - <h4>Branches</h4> - </div> - <table class="panel-footer table branch-list table table-hover"> - <thead> - <tr> - <th class="name"></th> - <th class="behind">Behind</th> - <th class="ahead">Ahead</th> - <th class="date">Last Commit</th> - <th class="action"></th> - </tr> - </thead> - <tbody> - <tr class="branch-main"> - <td class="name" colspan="3"> - <a href="#"><strong>BranchName</strong></a> - <button class="btn btn-primary btn-sm">base branch</button> - </td> - <td class="date">3 years ago</td> - <td class="action"></td> - </tr> - <tr> - <td class="name"><a href="#"><strong>BranchName</strong></a></td> - <td class="behind">102 <span class="graph" style="width: 100%"></span></td> - <td class="ahead"><span class="graph" style="width: 4%"></span>4</td> - <td class="date">3 years ago</td> - <td class="action"><a class="btn btn-info btn-sm" href="#">compare</a></td> - </tr> - </tbody> - </table> - </div> - </div> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/repo/issue/create.tmpl b/templates/repo/issue/create.tmpl deleted file mode 100644 index 307be6aa22..0000000000 --- a/templates/repo/issue/create.tmpl +++ /dev/null @@ -1,126 +0,0 @@ -{{template "base/head_old" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -<div id="body" class="container"> - <div id="issue"> - <form class="form" action="{{.RepoLink}}/issues/new" method="post" id="issue-create-form" enctype="multipart/form-data"> - {{.CsrfTokenHtml}} - {{template "base/alert" .}} - <div class="col-md-1"> - <img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/> - </div> - <div class="col-md-8 panel panel-default"> - <div class="form-group panel-body"> - <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" autofocus /> - </div> - <div class="form-group panel-body"> - {{if .IsRepositoryOwner}} - <span><strong id="assigned" data-no-assigned="No one">No one</strong> will be assigned</span> - <input type="hidden" name="assigneeid" value="0" id="assignee"/> - <div style="display: inline-block;position: relative"> - <button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown"> - <i class="fa fa-group"></i> - <span class="caret"></span> - </button> - <div class="dropdown-menu assignee"> - <ul class="list-unstyled"> - <li data-uid="0" class="clear-assignee hidden"><i class="fa fa-times-circle-o"></i> Clear assignee</li> - {{range .Collaborators}} - <li data-uid="{{.Id}}"><img src="{{.AvatarLink}}"><strong>{{.Name}}</strong> {{.FullName}}</li> - {{end}} - </ul> - </div> - </div> - <span><strong id="milestone" data-no-milestone="No milestone">No milestone</strong></span> - <input type="hidden" name="milestoneid" value="0" id="milestone-id"/> - <div style="display: inline-block;position: relative"> - <button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown"> - <i class="fa fa-check-square-o"></i> - <span class="caret"></span> - </button> - <div class="dropdown-menu milestone"> - <ul class="list-unstyled"> - <li data-id="0" class="clear-milestone milestone-item hidden"><i class="fa fa-times-circle-o"></i> Clear milestone </li> - <li class="milestone-list"> - <ul class="nav nav-tabs" data-init="tabs"> - <li class="active"><a href="#milestone-open" data-toggle="tab">Open</a></li> - <li><a href="#milestone-close" data-toggle="tab">Closed</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane active" id="milestone-open"> - {{if not .OpenMilestones}} - <p class="milestone-item">Nothing to show</p> - {{else}} - <ul class="list-unstyled"> - {{range .OpenMilestones}} - <li class="milestone-item" data-id="{{.ID}}"> - <p><strong>{{.Name}}</strong></p> - <!-- <p>due to 3 days later</p> --> - </li> - {{end}} - </ul> - {{end}} - </div> - - <div class="tab-pane" id="milestone-close"> - {{if not .ClosedMilestones}} - <p class="milestone-item">Nothing to show</p> - {{else}} - <ul class="list-unstyled"> - {{range .ClosedMilestones}} - <li class="milestone-item" data-id="{{.ID}}"> - <p><strong>{{.Name}}</strong></p> - <p>Closed {{TimeSince .ClosedDate $.Lang}}</p> - </li> - {{end}} - </ul> - {{end}} - </div> - </div> - </li> - </ul> - </div> - </div> - </div> - {{end}} - <div class="form-group panel-body"> - <div class="md-help pull-right"><!-- todo help link --> - Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> - </div> - <ul class="nav nav-tabs" data-init="tabs"> - <li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li> - <li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="issue-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane" id="issue-textarea"> - <div class="form-group"> - <div id="submit-error" class="text-danger"></div> - <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea> - </div> - </div> - <div class="tab-pane issue-preview-content" id="issue-preview">loading...</div> - </div> - </div> - {{if .AttachmentsEnabled}} - <div id="attached"> - <div id="attached-list"> - <b>Attachments:</b> - </div> - </div> - {{end}} - <div class="text-right panel-body"> - <div class="form-group"> - {{if .AttachmentsEnabled}} - <input type="file" accept="{{.AllowedTypes}}" style="display: none;" id="attachments-input" name="attachments" multiple /> - <button class="btn-default btn attachment-add" id="attachments-button">Select Attachments...</button> - {{end}} - <input type="hidden" value="id" name="repo-id"/> - <button class="btn-success btn">Create new issue</button> - </div> - </div> - </div> - </form> - </div> -</div> -{{template "base/footer_old" .}} diff --git a/templates/repo/issue/view_old.tmpl b/templates/repo/issue/view_old.tmpl deleted file mode 100644 index d13364aa54..0000000000 --- a/templates/repo/issue/view_old.tmpl +++ /dev/null @@ -1,284 +0,0 @@ -{{template "base/head_old" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -<div id="body" class="container"> - <div id="issue" data-id="{{.Issue.ID}}"> - <div id="issue-{{.Issue.ID}}" class="issue-whole issue-is-opening"> - <div class="issue-wrap col-md-10"> - <div class="issue-head clearfix"> - <div class="number pull-right">#{{.Issue.Index}}</div> - <a class="author pull-left" href="{{AppSubUrl}}/{{.Issue.Poster.Name}}"><img class="avatar" src="{{.Issue.Poster.AvatarLink}}" alt="" width="30"/></a> - <h1 class="title pull-left">{{.Issue.Name}}</h1> - <input id="issue-edit-title" class="form-control input-lg pull-left hidden" type="text" value="{{.Issue.Name}}" data-ajax-rel="issue-edit-save" data-ajax-val="val" data-ajax-field="title"/> - <input type="hidden" value="{{.Issue.ID}}" data-ajax-rel="issue-edit-save" data-ajax-val="val" data-ajax-field="issue_id"/> - <p class="info pull-left"> - {{if .IsIssueOwner}}<a class="btn btn-default pull-right issue-edit" href="#" id="issue-edit-btn">Edit</a> - <a class="btn btn-danger pull-right issue-edit-cancel hidden" href="#">Cancel</a> - <a class="btn btn-primary pull-right issue-edit-save hidden" href="#" data-ajax="{{.RepoLink}}/issues/{{.Issue.Index}}" data-ajax-name="issue-edit-save" data-ajax-method="post">Save</a>{{end}} - <span class="status label label-{{if .Issue.IsClosed}}danger{{else}}success{{end}}">{{if .Issue.IsClosed}}Closed{{else}}Open{{end}}</span> - <a href="{{AppSubUrl}}/{{.Issue.Poster.Name}}" class="author"><strong>{{.Issue.Poster.Name}}</strong></a> opened this issue - <span class="time">{{TimeSince .Issue.Created $.Lang}}</span> · {{.Issue.NumComments}} comments - </p> - </div> - <div class="issue-main"> - <div class="panel panel-default issue-content"> - <div class="panel-body"> - <div class="content markdown"> - {{Str2html .Issue.RenderedContent}} - </div> - <div class="issue-edit-content hidden"> - <div class="form-group"> - <div class="md-help pull-right">Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> - </div> - <ul class="nav nav-tabs" data-init="tabs"> - <li class="issue-write active"><a href="#issue-edit-textarea" data-toggle="tab">Write</a></li> - <li class="issue-preview"><a href="#issue-edit-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="issue-edit-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#issue-edit-preview">Preview</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane active" id="issue-edit-textarea"> - <div class="form-group"> - <input type="hidden" value="1" name="issueIndex"> - <textarea class="form-control" name="content" id="issue-edit-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-edit-preview" data-ajax-val="val" data-ajax-field="text">{{.Issue.Content}}</textarea> - </div> - </div> - <div class="tab-pane issue-preview-content" id="issue-edit-preview">Loading...</div> - </div> - </div> - </div> - </div> - {{with $attachments := .Issue.Attachments}} - {{if $attachments}} - <div class="attachments"> - <span class="attachment-label label label-info">Attachments:</span> - - {{range $attachments}} - <a class="attachment label label-default" href="/attachments/{{.UUID}}">{{.Name}}</a> - {{end}} - </div> - {{end}} - {{end}} - </div> - {{range .Comments}} - {{/* 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE, 4 = COMMIT, 5 = PULL */}} - {{if eq .Type 0}} - <div class="issue-child" id="issue-comment-{{.Id}}"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt=""/></a> - <div class="issue-content panel panel-default"> - <div class="panel-heading"> - <a href="{{AppSubUrl}}/{{.Poster.Name}}" class="user">{{.Poster.Name}}</a> commented <span class="time">{{TimeSince .Created $.Lang}}</span> - <!-- <a class="issue-comment-del pull-right issue-action" href="#" title="Edit Comment"><i class="fa fa-times-circle"></i></a> - <a class="issue-comment-edit pull-right issue-action" href="#" title="Remove Comment" data-url="{remove-link}"><i class="fa fa-edit"></i></a> --> - {{if eq .Poster.Id $.Owner.Id}} - <span class="role label label-default pull-right">Owner</span> - {{end}} - </div> - <div class="panel-body markdown"> - {{if len .Content}} - {{Str2html .Content}} - {{else}} - <i>No comment entered</i> - {{end}} - </div> - {{with $attachments := .Attachments}} - {{if $attachments}} - <div class="attachments"> - <span class="attachment-label label label-info">Attachments:</span> - - {{range $attachments}} - <a class="attachment label label-default" href="{{.IssueId}}/attachment/{{.Id}}">{{.Name}}</a> - {{end}} - </div> - {{end}} - {{end}} - </div> - </div> - {{else if eq .Type 1}} - <div class="issue-child issue-opened"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" /></a> - <div class="issue-content"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}">{{.Poster.Name}}</a> <span class="label label-success">Reopened</span> this issue <span class="time">{{TimeSince .Created $.Lang}}</span> - </div> - </div> - {{else if eq .Type 2}} - <div class="issue-child issue-closed"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt=""/></a> - <div class="issue-content"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}">{{.Poster.Name}}</a> <span class="label label-danger">Closed</span> this issue <span class="time">{{TimeSince .Created $.Lang}}</span> - </div> - </div> - {{else if eq .Type 4}} - <div class="issue-child issue-reference issue-reference-commit"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt=""/></a> - <div class="issue-content"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}">{{.Poster.Name}}</a> <span class="label label-primary">Referenced</span> this issue <span class="time">{{TimeSince .Created $.Lang}}</span> - <p> - <a class="user pull-left" href="{{AppSubUrl}}/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt=""/></a> - {{.ContentHtml}} - </p> - </div> - </div> - {{end}} - {{end}} - <hr class="issue-line"/> - {{if .SignedUser}}<div class="issue-child issue-reply"> - <a class="user pull-left" href="{{AppSubUrl}}/{{.SignedUser.Name}}"><img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/></a> - <form class="panel panel-default issue-content" action="{{.RepoLink}}/comment/new" method="post" enctype="multipart/form-data"> - {{.CsrfTokenHtml}} - <div class="panel-body"> - <div class="form-group"> - <div class="md-help pull-right">Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> - </div> - <ul class="nav nav-tabs" data-init="tabs"> - <li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li> - <li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="issue-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane" id="issue-textarea"> - <div class="form-group"> - <div id="submit-error" class="text-danger"></div> - <input type="hidden" value="{{.Issue.Index}}" name="issueIndex"/> - <textarea class="form-control" name="content" id="issue-reply-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea> - </div> - </div> - <div class="tab-pane issue-preview-content" id="issue-preview">Loading...</div> - </div> - </div> - {{if .AttachmentsEnabled}} - <!-- <div id="attached"> - <div id="attached-list"> - <b>Attachments:</b> - </div> - </div> --> - {{end}} - <div class="text-right"> - <div class="form-group"> - {{if .AttachmentsEnabled}} - <!-- <input type="file" accept="{{.AllowedTypes}}" style="display: none;" id="attachments-input" name="attachments" multiple /> - <button class="btn-default btn attachment-add" id="attachments-button">Select Attachments...</button> --> - {{end}} - {{if .IsIssueOwner}}{{if .Issue.IsClosed}} - <input type="submit" class="btn-default btn issue-open" id="issue-open-btn" data-origin="Reopen" data-text="Reopen & Comment" name="change_status" value="Reopen"/>{{else}} - <input type="submit" class="btn-default btn issue-close" id="issue-close-btn" data-origin="Close" data-text="Close & Comment" name="change_status" value="Close"/>{{end}}{{end}} - <button class="btn-success btn" id="issue-reply-btn">Comment</button> - </div> - </div> - </div> - </form> - </div>{{else}}<div class="alert alert-warning"><a class="btn btn-success btn-lg" href="{{AppSubUrl}}/user/sign_up">Sign up for free</a> to join this conversation. Already have an account? <a href="{{AppSubUrl}}/user/login">Sign in to comment</a></div>{{end}} - </div> - </div> - - <div class="issue-bar col-md-2"> - <div class="labels" data-ajax="{{.Issue.Index}}/label"> - {{if .IsRepositoryOwner}} - <div class="pull-right action"> - <button class="btn btn-default btn-sm" data-toggle="dropdown"> - <i class="fa fa-tags"></i> - <span class="caret"></span> - </button> - <div class="dropdown-menu dropdown-menu-right no"> - <ul class="list-unstyled"> - {{range .Labels}} - <li class="{{if not .IsChecked}}no-{{end}}checked" data-id="{{.ID}}"> - {{if .IsChecked}}<span class="check pull-left"><i class="fa fa-check"></i></span>{{end}} - <span class="color" style="background-color: {{.Color}}"></span> - <span class="name">{{.Name}}</span> - </li> - {{end}} - </ul> - </div> - </div> - {{end}} - <h4>Labels</h4> - {{if .Issue.Labels}} - {{range .Issue.Labels}} - <p id="label-{{.ID}}" class="label-item label-white" style="background-color: {{.Color}}"><strong>{{.Name}}</strong></p> - {{end}} - {{else}} - <p>None yet</p> - {{end}} - </div> - <div class="milestone" data-milestone="{{.Milestone.ID}}" data-ajax="{{.Issue.Index}}/milestone"> - <div class="pull-right action"> - {{if .IsRepositoryOwner}} - <button class="btn btn-default btn-sm" data-toggle="dropdown"> - <i class="fa fa-check-square-o"></i> - <span class="caret"></span> - </button> - <div class="dropdown-menu dropdown-menu-right"> - <ul class="list-unstyled"> - <li data-id="0" class="clear-milestone milestone-item hidden"><i class="fa fa-times-circle-o"></i> Clear milestone </li> - <li class="milestone-list"> - <ul class="nav nav-tabs" data-init="tabs"> - <li class="active"><a href="#milestone-open" data-toggle="tab">Open</a></li> - <li><a href="#milestone-close" data-toggle="tab">Closed</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane active" id="milestone-open"> - {{if not .OpenMilestones}} - <p class="milestone-item">Nothing to show</p> - {{else}} - <ul class="list-unstyled"> - {{range .OpenMilestones}} - <li class="milestone-item" data-id="{{.ID}}"> - <p><strong>{{.Name}}</strong></p> - <!-- <p>due to 3 days later</p> --> - </li> - {{end}} - </ul> - {{end}} - </div> - - <div class="tab-pane" id="milestone-close"> - {{if not .ClosedMilestones}} - <p class="milestone-item">Nothing to show</p> - {{else}} - <ul class="list-unstyled"> - {{range .ClosedMilestones}} - <li class="milestone-item" data-id="{{.ID}}"> - <p><strong>{{.Name}}</strong></p> - <p>Closed {{TimeSince .ClosedDate $.Lang}}</p> - </li> - {{end}} - </ul> - {{end}} - </div> - </div> - </li> - </ul> - </div> - {{end}} - </div> - <h4>Milestone</h4> - {{if .Milestone}} - <p class="completion{{if eq .Milestone.Completeness 0}} hidden{{end}}"><span style="width:{{.Milestone.Completeness}}%"> </span></p> - <p class="name"><strong><a href="{{$.RepoLink}}/issues?milestone={{.Milestone.ID}}{{if $.Issue.IsClosed}}&state=closed{{end}}">{{.Milestone.Name}}</a></strong></p> - {{else}} - <p class="name">No milestone</p> - {{end}} - </div> - - <div class="assignee" data-assigned="{{if .Issue.Assignee}}{{.Issue.Assignee.Id}}{{else}}0{{end}}" data-ajax="{{.Issue.Index}}/assignee">{{if .IsRepositoryOwner}} - <div class="pull-right action"> - <button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown"> - <i class="fa fa-group"></i> - <span class="caret"></span> - </button> - <div class="dropdown-menu dropdown-menu-right"> - <ul class="list-unstyled"> - <li data-uid="0" class="clear-assignee hidden"><i class="fa fa-times-circle-o"></i> Clear assignee</li> - {{range .Collaborators}} - <li data-uid="{{.Id}}"><img src="{{.AvatarLink}}"><strong>{{.Name}}</strong></li> - {{end}} - </ul> - </div> - </div>{{end}} - <h4>Assignee</h4> - <p>{{if .Issue.Assignee}}<img src="{{.Issue.Assignee.AvatarLink}}"><strong>{{.Issue.Assignee.Name}}</strong>{{else}}No one assigned{{end}}</p> - </div> - </div> - </div> - </div> -</div> -{{template "base/footer_old" .}} diff --git a/templates/repo/list.tmpl b/templates/repo/list.tmpl deleted file mode 100644 index 403c62d62c..0000000000 --- a/templates/repo/list.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -<div class="container" id="body"> - <ul> - {{range .Repos}} - <li>{{.Name}} stars: {{.NumStars}} forks: {{.NumForks}} watches:{{.NumWatchs}}</li> - {{end}} - </ul> -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl deleted file mode 100644 index 44df6815f2..0000000000 --- a/templates/repo/toolbar.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -<div id="repo-toolbar"> - <div class="container"> - <nav class="navbar navbar-toolbar navbar-default" role="navigation"> - <div class="collapse navbar-collapse"> - <ul class="nav navbar-nav"> - <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="{{.RepoLink}}{{if .BranchName}}{{if ne .BranchName `master`}}/src/{{.BranchName}}{{end}}{{end}}">Source</a></li> - {{if not .IsBareRepo}} - <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="{{.RepoLink}}/commits/{{if .BranchName}}{{.BranchName}}{{else}}master{{end}}">Commits</a></li> - <!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="{{.RepoLink}}/branches">Branches</a></li> --> - <!-- <li class="{{if .IsRepoToolbarPulls}}active{{end}}"><a href="{{.RepoLink}}/pulls">Pull Requests</a></li> --> - <li class="{{if .IsRepoToolbarIssues}}active{{end}}"><a href="{{.RepoLink}}/issues">{{if .Repository.NumOpenIssues}}<span class="badge">{{.Repository.NumOpenIssues}}</span> {{end}}Issues <!--<span class="badge">42</span>--></a></li> - {{if .IsRepoToolbarIssues}} - <li class="tmp">{{if .IsRepoToolbarIssuesList}} - <a href="{{.RepoLink}}/issues/new"><button class="btn btn-primary btn-sm">New Issue</button></a> - <a href="{{.RepoLink}}/milestones"><button class="btn btn-success btn-sm">Milestones</button></a> - {{end}}</li> - {{end}} - <li class="{{if .IsRepoToolbarReleases}}active{{end}}"><a href="{{.RepoLink}}/releases">{{if .Repository.NumTags}}<span class="badge">{{.Repository.NumTags}}</span> {{end}}Releases</a></li> - {{if .IsRepoToolbarReleases}}{{if .IsRepositoryOwner}}{{if not .IsRepoReleaseNew}} - <li class="tmp"><a href="{{.RepoLink}}/releases/new"><button class="btn btn-primary btn-sm">New Release</button></a></li> - {{end}}{{end}}{{end}} - <!-- <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="{{.RepoLink}}/wiki">Wiki</a></li> - </ul> - </li> -->{{end}} - </ul> - <ul class="nav navbar-nav navbar-right"> - {{if not .IsBareRepo}} - <!-- <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statistic <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Graphic</a></li> - <li><a href="#">Pulse</a></li> - <li><a href="#">Network</a></li> - </ul> - </li> -->{{end}}{{if .IsRepositoryAdmin}} - <li class="{{if .IsRepoToolbarSetting}}active{{end}}"><a href="{{.RepoLink}}/settings">Settings</a> - </li>{{end}} - </ul> - </div> - </nav> - </div> -</div> |