Skip to content

Commit

Permalink
github button added
Browse files Browse the repository at this point in the history
  • Loading branch information
f1mishutka committed Apr 10, 2024
1 parent 63e150d commit 5cb73d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
35 changes: 24 additions & 11 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,35 @@
var mtAuth = {{.Auth}};
</script>

<div class="container border m-5 p-3 bg-light">
<h1>{{.AppInfo.AppName}}</h1>
<p class="small text-muted">v.{{.AppInfo.Version}}, commit {{.AppInfo.BuildCommit}}, built with {{.AppInfo.BuildWith}} at {{.AppInfo.BuildTime}}</p>
<p>
<b>Bot</b>: {{.AppInfo.Global.BotInfo}}<br>
<b>Chat</b>: {{.AppInfo.Global.ChatInfo}}
</p>
<div class="container p-3">
<div class="border p-3 bg-light">
<h1>{{.AppInfo.AppName}}</h1>
<p class="text-muted">{{.AppInfo.LongDescription}}</p>
<p class="small text-muted">v.{{.AppInfo.Version}}, commit {{.AppInfo.BuildCommit}}, built with {{.AppInfo.BuildWith}} at {{.AppInfo.BuildTime}}</p>
<p>
<b>Bot</b>: {{.AppInfo.Global.BotInfo}}<br>
<b>Chat</b>: {{.AppInfo.Global.ChatInfo}}
</p>

<div id="app">
<component-status v-bind="status"></component-status>
<div id="app">
<component-status v-bind="status"></component-status>

<component-main v-if="session"></component-main>
<component-auth v-else=""></component-auth>
<component-main v-if="session"></component-main>
<component-auth v-else=""></component-auth>
</div>
</div>

<div class="d-flex justify-content-between text-muted mt-3">
<div>
<a href="https://www.mito-team.com" target="_blank">MiTo Team</a>
</div>
<div>
<a class="github-button" href="https://github.com/mitoteam/mt-tgadmin" data-color-scheme="no-preference: light; light: light; dark: dark;" data-show-count="true" aria-label="Star mitoteam/mt-tgadmin on GitHub" target="_blank">mitoteam/mt-tgadmin</a>
</div>
</div>
</div>

<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha256-3gQJhtmj7YnV1fmtbVcnAV6eI4ws0Tr48bVZCThtCGQ=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.21/dist/vue.global.min.js"></script>
<script src="/assets/ckeditor.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {

app.App.AppName = "mt-tgadmin"
app.App.ExecutableName = "mt-tgadmin"
app.App.LongDescription = `simple telegram bot Web GUI based manager to send messages to groups.
app.App.LongDescription = `Simple telegram bot Web GUI to send messages to groups.
Copyright: MiTo Team, https://mito-team.com`

Expand Down

0 comments on commit 5cb73d2

Please sign in to comment.