-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make a partial out of index list to use in profiles later - Remove unused CSS items Change-Id: I674a68b0db25cd5dea1c57163311725a01c568b6 Signed-off-by: Ian Meyer <[email protected]>
- Loading branch information
Showing
4 changed files
with
91 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{ define "index-thread-partial" }} | ||
{{ if .Threads }} | ||
<table class="table-max-w"> | ||
<colgroup> | ||
<col class="col-user" /> | ||
<col class="col-subject" /> | ||
<col class="col-posts" /> | ||
<col class="col-date" /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th class="user">user</th> | ||
<th>subject</th> | ||
<th class="col-posts">posts</th> | ||
<th class="col-date">date</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range .Threads }} | ||
<tr> | ||
<td class="user"><a href="/member/{{ .Lastid.Int64 }}">{{ .Email.String }}</a></td> | ||
<td><a href="/thread/{{ .ThreadID }}">{{ .Subject }}</a></td> | ||
<td class="col-posts">{{ .Posts.Int32 }}</td> | ||
<td class="col-date">{{ .DateLastPosted.Time | formatTimestamp }}</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
{{else}} | ||
<p>No threads...</p> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,7 @@ | ||
{{ template "header" . }} | ||
|
||
<h2><a href="/thread/new">Create new thread...</a></h2> | ||
{{ if .Threads }} | ||
<table class="table-max-w"> | ||
<colgroup> | ||
<col class="col-user" /> | ||
<col class="col-subject" /> | ||
<col class="col-posts" /> | ||
<col class="col-date" /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th class="user">user</th> | ||
<th>subject</th> | ||
<th>posts</th> | ||
<th>date</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range .Threads }} | ||
<tr> | ||
<td class="user"><a href="/member/{{ .Lastid.Int64 }}">{{ .Email.String }}</a></td> | ||
<td><a href="/thread/{{ .ThreadID }}">{{ .Subject }}</a></td> | ||
<td>{{ .Posts.Int32 }}</td> | ||
<td>{{ .DateLastPosted.Time | formatTimestamp }}</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
{{else}} | ||
<p>Nothing to see here... <a href="/thread/new">say something!!!</a></p> | ||
{{end}} | ||
|
||
{{ template "index-thread-partial" . }} | ||
|
||
{{ template "footer" . }} |