diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-06-24 23:11:08 +0000 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-06-24 23:11:08 +0000 |
commit | 965aa7234deb2017f07165ae257a231b36609bd1 (patch) | |
tree | 08283a0a16c3d190eda92c00d0810bcb7c2d57d8 /web | |
parent | Fix the links of the search results (diff) | |
download | archives-965aa7234deb2017f07165ae257a231b36609bd1.tar.gz archives-965aa7234deb2017f07165ae257a231b36609bd1.tar.bz2 archives-965aa7234deb2017f07165ae257a231b36609bd1.zip |
Use 3 tabs to split the different views
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/home/home.tmpl | 57 | ||||
-rw-r--r-- | web/templates/layout/tyriannav.tmpl | 7 | ||||
-rw-r--r-- | web/templates/recent/recent.tmpl | 78 |
3 files changed, 82 insertions, 60 deletions
diff --git a/web/templates/home/home.tmpl b/web/templates/home/home.tmpl index a46d3fc..15bffea 100644 --- a/web/templates/home/home.tmpl +++ b/web/templates/home/home.tmpl @@ -4,10 +4,6 @@ <body> {{template "header" "home"}} -<div id="scroll-down-section" class="text-muted" style="z-index: 9999;"> - <br/><br/> - <i onclick="document.getElementById('lists-section').scrollIntoView(true);" class="fa fa-angle-down" aria-hidden="true"></i> -</div> <div class="container mb-5"> <div class="row"> @@ -52,59 +48,6 @@ </div> - <div id="lists-section" class="col-12 pt-3"> - <p class="lead"> - Here you can find the archives of our most important mailing lists. - </p> - <p> - For a complete list of available archives, see the <a href="/lists" class="btn btn-primary btn-sm px-1 py-0"><i class="fa fa-fw fa-archive"></i> All Archives</a> section. - </p> - </div> - - <div class="col-12"> - {{range .MailingLists}} - <hr/> - <div class="row"> - <div class="col-12 col-md-4"> - <h2 class="stick-top">{{.Name}}</h2> - <p> - <tt>{{.Name}}</tt> {{.Description}}. - </p> - <p class="ag-index-actions"> - <a class="btn btn-primary btn-block" href="/{{.Name}}/threads/{{ $.CurrentMonth}}/"><span class="fa fa-fw fa-inbox"></span> This Month's Archives</a> - <a class="btn btn-outline-secondary text-dark btn-block" href="/{{.Name}}/"><span class="fa fa-fw fa-inbox"></span> Complete Archives</a> - </p> - </div> - <div class="col-12 col-md-8"> - <h3 class="ag-mostrecent-header">Most recent messages</h3> - <div class="table-responsive"> - <table class="table table-sm table-hover ag-mostrecent-table"> - <tbody> - <tr> - <th>Subject</th> - <th class="ag-mostrecent-table-author">Author</th> - </tr> - {{$listName:=.Name}} - {{range .Messages}} - <tr> - <td><a href="/{{$listName}}/message/{{.Id}}">{{.GetSubject}}</a></td> - <td>{{.GetAuthorName}}</td> - </tr> - {{end}} - </tbody> - </table> - </div> - </div> - </div> - {{end}} - - <hr/> - <h2>Other Lists</h2> - <p> - All other archives are available here: <a href="/lists" class="btn btn-primary"><i class="fa fa-fw fa-archive"></i> All Archives</a> - </p> - - </div> </div> </div> diff --git a/web/templates/layout/tyriannav.tmpl b/web/templates/layout/tyriannav.tmpl index f7c83da..72b926e 100644 --- a/web/templates/layout/tyriannav.tmpl +++ b/web/templates/layout/tyriannav.tmpl @@ -9,9 +9,10 @@ <div class="collapse navbar-collapse navbar-main-collapse" id="navbar-main-collapse"> <ul class="navbar-nav mr-auto"> - <li class="nav-item {{ if (eq . "home")}}active{{end}}"><a class="nav-link" href="/">Home</a></li> - <li class="nav-item {{ if (eq . "browse")}}active{{end}}"><a class="nav-link" href="/lists"><i class="fa fa-fw fa-archive"></i> All Archives</a></li> - {{ if not (eq . "home" "search" "browse" "popular") }} + <li class="nav-item {{ if (eq . "home" "search")}}active{{end}}"><a class="nav-link" href="/">Search</a></li> + <li class="nav-item {{ if (eq . "recent")}}active{{end}}"><a class="nav-link" href="/recent">Recent</a></li> + <li class="nav-item {{ if (eq . "browse")}}active{{end}}"><a class="nav-link" href="/lists"><i class="fa fa-fw fa-archive"></i> Browse</a></li> + {{ if not (eq . "home" "search" "recent" "browse" "popular") }} <li class="nav-item active"><a class="nav-link" href="/{{.}}/"><i class="fa fa-fw fa-inbox"></i> {{.}}</a></li> {{end}} diff --git a/web/templates/recent/recent.tmpl b/web/templates/recent/recent.tmpl new file mode 100644 index 0000000..a4d8864 --- /dev/null +++ b/web/templates/recent/recent.tmpl @@ -0,0 +1,78 @@ +<!DOCTYPE html> +<html lang="en"> +{{template "head"}} +<body> +{{template "header" "recent"}} + +<div id="scroll-down-section" class="text-muted" style="z-index: 9999;"> + <br/><br/> + <i onclick="document.getElementById('lists-section').scrollIntoView(true);" class="fa fa-angle-down" aria-hidden="true"></i> +</div> + +<div class="container mb-5"> + <div class="row"> + + <div id="lists-section" class="col-12 pt-3"> + <h1 class="first-header">Gentoo Mailing List Archives</h1> + <p class="lead"> + Here you can find the archives of our most important mailing lists. + </p> + <p> + For a complete list of available archives, see the <a href="/lists" class="btn btn-primary btn-sm px-1 py-0"><i class="fa fa-fw fa-archive"></i> All Archives</a> section. + </p> + </div> + + <div class="col-12"> + {{range .MailingLists}} + <hr/> + <div class="row"> + <div class="col-12 col-md-4"> + <h2 class="stick-top">{{.Name}}</h2> + <p> + <tt>{{.Name}}</tt> {{.Description}}. + </p> + <p class="ag-index-actions"> + <a class="btn btn-primary btn-block" href="/{{.Name}}/threads/{{ $.CurrentMonth}}/"><span class="fa fa-fw fa-inbox"></span> This Month's Archives</a> + <a class="btn btn-outline-secondary text-dark btn-block" href="/{{.Name}}/"><span class="fa fa-fw fa-inbox"></span> Complete Archives</a> + </p> + </div> + <div class="col-12 col-md-8"> + <h3 class="ag-mostrecent-header">Most recent messages</h3> + <div class="table-responsive"> + <table class="table table-sm table-hover ag-mostrecent-table"> + <tbody> + <tr> + <th>Subject</th> + <th class="ag-mostrecent-table-author">Author</th> + </tr> + {{$listName:=.Name}} + {{range .Messages}} + <tr> + <td><a href="/{{$listName}}/message/{{.Id}}">{{.GetSubject}}</a></td> + <td>{{.GetAuthorName}}</td> + </tr> + {{end}} + </tbody> + </table> + </div> + </div> + </div> + {{end}} + + <hr/> + <h2>Other Lists</h2> + <p> + All other archives are available here: <a href="/lists" class="btn btn-primary"><i class="fa fa-fw fa-archive"></i> All Archives</a> + </p> + + </div> + </div> +</div> + + +{{template "footer"}} + +<script src="/assets/index.js"></script> + +</body> +</html> |