From f808df5a7b36d134ec92d62e9041a6320f416054 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 25 Aug 2015 22:58:34 +0800 Subject: new user dahsboard issues --- templates/user/dashboard/issues.tmpl | 86 ++++++++++++++++++++++++++++++++++++ templates/user/dashboard/navbar.tmpl | 30 +++++++++++++ templates/user/issues.tmpl | 44 ------------------ 3 files changed, 116 insertions(+), 44 deletions(-) create mode 100644 templates/user/dashboard/issues.tmpl create mode 100644 templates/user/dashboard/navbar.tmpl delete mode 100644 templates/user/issues.tmpl (limited to 'templates/user') diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl new file mode 100644 index 0000000000..b104d69d16 --- /dev/null +++ b/templates/user/dashboard/issues.tmpl @@ -0,0 +1,86 @@ +{{template "base/head" .}} +
+ {{template "user/dashboard/navbar" .}} +
+
+ +
+ + +
+ {{range .Issues}} + {{ $timeStr:= TimeSince .Created $.Lang }} +
  • +
    #{{.ID}}
    + {{.Name}} + + {{if .NumComments}} + {{.NumComments}} + {{end}} + +

    + {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.Name | Safe}} + {{if .Assignee}} + + + + {{end}} +

    +
  • + {{end}} + + {{with .Page}} + {{if gt .TotalPages 1}} +
    + +
    + {{end}} + {{end}} +
    +
    +
    +
    +
    +{{template "base/footer" .}} diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl new file mode 100644 index 0000000000..6e14b4bdaf --- /dev/null +++ b/templates/user/dashboard/navbar.tmpl @@ -0,0 +1,30 @@ +
    + +
    +
    \ No newline at end of file diff --git a/templates/user/issues.tmpl b/templates/user/issues.tmpl deleted file mode 100644 index 677f9d1410..0000000000 --- a/templates/user/issues.tmpl +++ /dev/null @@ -1,44 +0,0 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -{{template "user/dashboard/nav" .}} -
    -
    - {{if .HasInfo}}
    {{.InfoMsg}}
    {{end}} -
    - -
    -
    -
    - Open - Closed -
    -
    -
    - {{range .Issues}}{{if .}} -
    - #{{.Index}} -
    {{.Name}}
    -

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

    -
    - {{end}}{{end}} -
    -
    -
    -
    -
    -{{template "ng/base/footer" .}} -- cgit v1.2.3