From 4447a20f872776123c42d5b8ca987c114fb4b80b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Jul 2015 04:50:05 +0800 Subject: UI: issues - finish basic frame --- templates/repo/issue/list.tmpl | 203 +++++++++++++++---------------------- templates/repo/issue/list_old.tmpl | 120 ++++++++++++++++++++++ templates/repo/issue/navbar.tmpl | 7 ++ 3 files changed, 211 insertions(+), 119 deletions(-) create mode 100644 templates/repo/issue/list_old.tmpl create mode 100644 templates/repo/issue/navbar.tmpl (limited to 'templates/repo/issue') diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 8c267382..6f16a6c7 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -1,120 +1,85 @@ -{{template "base/head_old" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -
-
-
- -
-

Label

- - {{if or .IsRepositoryOwner .IsAdmin}} - -
-
- {{.CsrfTokenHtml}} -
New Label
-
- - - -
-
- - -
-
- {{end}} -
-
-
- {{template "base/alert" .}} - -
- {{range .Issues}}{{if .Poster}} -
- #{{.Index}} -
- {{.Name}} - - {{range .Labels}} - {{.Name}} - {{end}} - -
-

- - {{.Poster.Name}} - {{TimeSince .Created $.Lang}} - {{.NumComments}} -

-
- {{end}}{{end}} -
-
-
-
+{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ +
+ + + +
+ {{range .Issues}} + {{ $timeStr:= TimeSince .Created $.Lang }} +
  • +
    #{{.Id}}
    + {{.Name}} +

    {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.Name|Str2html}}

    + {{if .NumComments}} {{.NumComments}}{{end}} +
  • + {{end}} +
    +
    - - -{{template "base/footer_old" .}} +{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/issue/list_old.tmpl b/templates/repo/issue/list_old.tmpl new file mode 100644 index 00000000..8c267382 --- /dev/null +++ b/templates/repo/issue/list_old.tmpl @@ -0,0 +1,120 @@ +{{template "base/head_old" .}} +{{template "base/navbar" .}} +{{template "repo/nav" .}} +{{template "repo/toolbar" .}} +
    +
    +
    + +
    +

    Label

    + + {{if or .IsRepositoryOwner .IsAdmin}} + +
    +
    + {{.CsrfTokenHtml}} +
    New Label
    +
    + + + +
    +
    + + +
    +
    + {{end}} +
    +
    +
    + {{template "base/alert" .}} + +
    + {{range .Issues}}{{if .Poster}} +
    + #{{.Index}} +
    + {{.Name}} + + {{range .Labels}} + {{.Name}} + {{end}} + +
    +

    + + {{.Poster.Name}} + {{TimeSince .Created $.Lang}} + {{.NumComments}} +

    +
    + {{end}}{{end}} +
    +
    +
    +
    + + + +{{template "base/footer_old" .}} diff --git a/templates/repo/issue/navbar.tmpl b/templates/repo/issue/navbar.tmpl new file mode 100644 index 00000000..e4a58f77 --- /dev/null +++ b/templates/repo/issue/navbar.tmpl @@ -0,0 +1,7 @@ +
    + +
    \ No newline at end of file -- cgit v1.2.3