mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
Removed debug and cleaned up commits table
This commit is contained in:
parent
8d3033cc11
commit
26a548598b
3 changed files with 7 additions and 7 deletions
|
@ -81,13 +81,13 @@ const commitsTemplate = `
|
|||
<tr>
|
||||
<td style="no-width">
|
||||
<a href="{{$commit.URL}}">{{$commit.Message}}</a>
|
||||
<span class="dataid"> {{$commit.Branch}}</span>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<div class="contributor-meta">
|
||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" />
|
||||
{{$commit.Name}}
|
||||
{{if $commit.ShowDate}} · {{$commit.Date}} {{end}}
|
||||
{{if $commit.ShowBranch}} · {{$commit.Repo}}:<span class="bold">{{$commit.Branch}}</span>{{end}}
|
||||
· {{$commit.Date}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
//"fmt"
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -236,9 +236,9 @@ func (p *Provider) Render(ctx *provider.Context, config, data string) string {
|
|||
|
||||
if err != nil {
|
||||
log.Error("github render template.Parse error:", err)
|
||||
for k, v := range strings.Split(rep.template, "\n") {
|
||||
fmt.Println("DEBUG", k+1, v)
|
||||
}
|
||||
//for k, v := range strings.Split(rep.template, "\n") {
|
||||
// fmt.Println("DEBUG", k+1, v)
|
||||
//}
|
||||
return "Documize internal github template.Parse error: " + err.Error()
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ const (
|
|||
<table class="github-table" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="title">Milestones <span> {{.ClosedMS}} {{if eq 1 .ClosedMS}} closed and {{.OpenMS}} {{if eq 1 .OpenMS}} open </span>
|
||||
<th class="title">Milestones <span> {{.ClosedMS}} closed and {{.OpenMS}} open</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue