Download this file
| 1 | {{define "up-label"}}{{copy "nav.projects"}}{{end}} |
| 2 | {{define "title"}}{{.Thin.Project.Title}}{{end}} |
| 3 | {{define "content"}} |
| 4 | {{with .Thin.Project}}<section equipo-work equipo-inner data-project="{{.ID}}" data-work-live data-work-region id="work-project"> |
| 5 | <p equipo-crumbs><a href="/projects">{{copy "nav.projects"}}</a></p> |
| 6 | <header equipo-p-head>{{template "mono-l" .Mono}} |
| 7 | <div><div equipo-p-title><h1>{{.Title}}</h1>{{template "star-toggle" (dict "P" . "From" "project")}}</div>{{with .DescLine}}<p>{{.}}</p>{{end}}<p equipo-facts>{{template "project-facts" .}}</p></div> |
| 8 | {{if .People}}<div equipo-people><span equipo-avs>{{range .People}}{{template "av-l" .}}{{end}}</span><span>{{range $i, $p := .People}}{{if $i}}, {{end}}{{if $p.You}}{{copy "work.you"}}{{else}}{{$p.Name}}{{end}}{{end}}</span></div>{{end}} |
| 9 | </header> |
| 10 | <div equipo-p-cols> |
| 11 | <section equipo-p-section rst-stack><h2>{{copy "nav.tasks"}} {{with .Words}}<span equipo-quiet>{{.}}</span>{{end}}</h2>{{if $.Thin.Groups}}{{template "work-groups" (dict "Groups" $.Thin.Groups "From" "tasks" "Scope" "project")}}{{else}}<p equipo-empty data-empty-state="work.tasks_empty">{{copy "work.tasks_empty"}}</p>{{end}}</section> |
| 12 | <aside rst-stack> |
| 13 | {{if $.Owner}}<section equipo-p-section rst-stack rst-section><h2>{{copy "projects.details"}}</h2><form method="post" action="/projects/{{.ID}}/details" equipo-form rst-stack><input type="hidden" name="revision" value="{{.Revision}}"><label>{{copy "projects.title"}}<input name="title" value="{{.Title}}" maxlength="120" required></label>{{if eq .TitleSource "repository"}}<label equipo-checkbox><input type="checkbox" name="use_title" value="1">{{copy "projects.use_title"}}</label>{{end}}<label>{{copy "projects.description"}}<input name="description" value="{{.Description}}" maxlength="500"></label><label>{{copy "projects.names"}}<input name="names" value="{{$.Thin.ProjectNames}}" maxlength="1451"></label><p equipo-hint>{{copy "projects.names_hint"}}</p><button rst-btn type="submit">{{copy "projects.save"}}</button></form></section>{{end}} |
| 14 | |
| 15 | {{if .PersonalNames}}<section equipo-p-section rst-stack rst-section><h2>{{copy "projects.personal_names"}}</h2>{{range .PersonalNames}}<form method="post" action="/projects/{{$.Thin.Project.ID}}/names/remove"><input type="hidden" name="name" value="{{.}}"><span>{{.}}</span> <button rst-btn type="submit">{{copy "projects.forget_name"}}</button></form>{{end}}</section>{{end}} |
| 16 | <section equipo-p-section rst-stack rst-section><h2>{{copy "work.project.attachments"}}</h2><ul equipo-attach>{{range .Repos}}{{$r := .}}<li>{{icon "git"}}<div><p equipo-attach-name>{{.Name}}</p><p equipo-attach-sub>{{with .DefaultBranch}}<span>{{.}}</span>{{end}}{{with .HeadSubject}}<span>{{.}}</span>{{end}}{{with .HeadAt}}<span equipo-ago{{agoData . ""}}>{{$r.Ago}}</span>{{end}}</p></div>{{with .URL}}<span equipo-quiet><a href="{{.}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a></span>{{end}}</li>{{end}}</ul>{{with .ChecksLine}}<p equipo-quiet equipo-after>{{.}}</p>{{end}}</section> |
| 17 | {{if $.Thin.Activity}}<section equipo-p-section rst-stack rst-section><h2>{{copy "work.project.recently"}}</h2><ol equipo-activity-list>{{range $.Thin.Activity}}<li><time equipo-ago{{agoData .At ""}} datetime="{{.At.Format "2006-01-02T15:04:05Z07:00"}}">{{.Ago}}</time><span>{{template "recent" .}}</span></li>{{end}}</ol></section>{{end}} |
| 18 | <section equipo-p-section rst-stack rst-section><h2>{{copy "work.project.notes"}}</h2>{{if $.Thin.Notes}}<ul equipo-notes>{{range $.Thin.Notes}}<li equipo-note2><p>{{.Text}}</p><p equipo-cap>{{.From}}</p></li>{{end}}</ul>{{else}}<p equipo-quiet>{{copy "work.project.notes_empty"}}</p>{{end}}</section> |
| 19 | {{template "merge-policy" $.Thin.MergePolicy}} |
| 20 | </aside> |
| 21 | </div> |
| 22 | </section>{{end}} |
| 23 | {{end}} |
| 24 | {{define "recent"}}{{if eq .Format "work.recent.noted"}}{{.Who}} {{copy "work.recent.noted"}} <a href="/tasks/{{.TaskID}}">{{.Title}}</a>{{else if eq .Format "work.recent.merged"}}{{copy "work.recent.merged"}} <a href="/tasks/{{.TaskID}}">{{.Title}}</a> {{printf (copy "work.recent.into") .Who}}{{else}}{{.Who}} {{copy .Format}} <a href="/tasks/{{.TaskID}}">{{.Title}}</a>{{end}}{{end}} |
| 25 | |