aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 21:22:24 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 21:22:24 +0100
commit5845a8685b1696cd510a3362d1f174568d3a9221 (patch)
treed9da709a5b52044c1e9a79624e16000a880c3d46
parent998c1777afeeb44ecf6ba2e735a4d6176a9b339e (diff)
downloadcerrado-5845a8685b1696cd510a3362d1f174568d3a9221.tar.gz
cerrado-5845a8685b1696cd510a3362d1f174568d3a9221.tar.bz2
cerrado-5845a8685b1696cd510a3362d1f174568d3a9221.zip
feat: Remove under development warningv0.1
The project is good shape now that there is not need to the warning.
-rw-r--r--scss/main.scss4
-rw-r--r--templates/commit.qtpl2
-rw-r--r--templates/commit.qtpl.go6
-rw-r--r--templates/gitlist.qtpl3
-rw-r--r--templates/gitlist.qtpl.go59
5 files changed, 32 insertions, 42 deletions
diff --git a/scss/main.scss b/scss/main.scss
index 51b7df7..a6c973f 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -29,10 +29,6 @@ $navbar-nav-link-padding-x: $spacer;
@import "bootstrap/scss/_buttons.scss";
@import "tree.scss";
-// TODO remove once is not needed
-$alert-border-radius: 0;
-@import "bootstrap/scss/_alert.scss";
-
// overwrite to reduce the ammount of css generated by loading all utilities
$utilities: (
"order": (responsive: true,
diff --git a/templates/commit.qtpl b/templates/commit.qtpl
index adc6f2a..b58b238 100644
--- a/templates/commit.qtpl
+++ b/templates/commit.qtpl
@@ -7,8 +7,8 @@
<div class="col-md">
<a title="{%s c.Commit().Hash.String() %}" href="/{%s name %}/commit/{%s c.Commit().Hash.String() %}/">{%s c.Commit().Hash.String()[0:8] %}</a> —
<a title="{%s c.Commit().Committer.Email %}" href="mailto:{%s c.Commit().Author.Email %}">{%s c.Commit().Author.Name %}</a>
- —
{% if c.HasReference() %}
+ —
{% for _, r := range c.References() %}
{% if r.Name().IsBranch() %}
<a class="ref branch" title="{%s c.Commit().Hash.String() %}" href="/{%s name %}/tree/{%s r.Name().Short() %}/">{%s r.Name().Short() %}</a>
diff --git a/templates/commit.qtpl.go b/templates/commit.qtpl.go
index fda993d..5017880 100644
--- a/templates/commit.qtpl.go
+++ b/templates/commit.qtpl.go
@@ -60,12 +60,12 @@ func StreamCommit(qw422016 *qt422016.Writer, name string, c *git.CommitReference
qw422016.E().S(c.Commit().Author.Name)
//line templates/commit.qtpl:9
qw422016.N().S(`</a>
- —
`)
-//line templates/commit.qtpl:11
+//line templates/commit.qtpl:10
if c.HasReference() {
-//line templates/commit.qtpl:11
+//line templates/commit.qtpl:10
qw422016.N().S(`
+ —
`)
//line templates/commit.qtpl:12
for _, r := range c.References() {
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl
index e62e68a..9756eb7 100644
--- a/templates/gitlist.qtpl
+++ b/templates/gitlist.qtpl
@@ -56,9 +56,6 @@ type GitListPage struct {
</div>
<div id="about" class="col-md-4 order-first order-md-last">
{%z= p.About %}
- <div class="alert alert-warning text-center" role="alert">
- This project is under development, things may be broken or incomplete.
- </div>
</div>
</div>
{% endfunc %}
diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go
index d2b28d9..97b570b 100644
--- a/templates/gitlist.qtpl.go
+++ b/templates/gitlist.qtpl.go
@@ -225,71 +225,68 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Conte
qw422016.N().Z(p.About)
//line templates/gitlist.qtpl:58
qw422016.N().S(`
- <div class="alert alert-warning text-center" role="alert">
- This project is under development, things may be broken or incomplete.
- </div>
</div>
</div>
`)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
}
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) {
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
p.StreamContent(qw422016, ctx)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
qt422016.ReleaseWriter(qw422016)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
}
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
func (p *GitListPage) Content(ctx context.Context) string {
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
qb422016 := qt422016.AcquireByteBuffer()
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
p.WriteContent(qb422016, ctx)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
qs422016 := string(qb422016.B)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
return qs422016
-//line templates/gitlist.qtpl:64
+//line templates/gitlist.qtpl:61
}
-//line templates/gitlist.qtpl:66
+//line templates/gitlist.qtpl:63
func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) {
-//line templates/gitlist.qtpl:66
+//line templates/gitlist.qtpl:63
qw422016.N().S(`
`)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
}
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) {
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
p.StreamScript(qw422016, ctx)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
qt422016.ReleaseWriter(qw422016)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
}
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
func (p *GitListPage) Script(ctx context.Context) string {
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
qb422016 := qt422016.AcquireByteBuffer()
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
p.WriteScript(qb422016, ctx)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
qs422016 := string(qb422016.B)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
return qs422016
-//line templates/gitlist.qtpl:67
+//line templates/gitlist.qtpl:64
}