feat: Fixed some mobile UI issues
All checks were successful
Build Docker / Build Image (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2024-02-17 12:27:20 +11:00
parent b85d316491
commit af4cd0c652
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
4 changed files with 11 additions and 8 deletions

Binary file not shown.

View File

@ -1045,12 +1045,12 @@ def settings():
info = gitinfo.get_git_info() info = gitinfo.get_git_info()
branch = info['refs'] branch = info['refs']
if branch == "main": if branch != "main":
branch = "" branch = f"({branch})"
last_commit = info['author_date'] last_commit = info['author_date']
# import to time from format "2024-02-13 11:24:03" # import to time from format "2024-02-13 11:24:03"
last_commit = datetime.datetime.strptime(last_commit, "%Y-%m-%d %H:%M:%S") last_commit = datetime.datetime.strptime(last_commit, "%Y-%m-%d %H:%M:%S")
version = f'{last_commit.strftime("%y-%m-%d")} ({branch})' version = f'{last_commit.strftime("%y-%m-%d")} {branch}'
return render_template("settings.html", account=account,sync=account_module.getNodeSync(), return render_template("settings.html", account=account,sync=account_module.getNodeSync(),
error=error,success=success,version=version) error=error,success=success,version=version)

View File

@ -146,12 +146,14 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th><a href="/?direction={{sort_domain_next}}">Domain{{sort_domain}}</a></th> <th><a href="/auctions?direction={{sort_domain_next}}">Domain{{sort_domain}}</a></th>
<th><a href="/?sort=expiry&direction={{sort_expiry_next}}">Expires{{sort_expiry}}</a></th> <th><a href="/auctions?sort=state&direction={{sort_state_next}}">State{{sort_state}}</a></th>
<th><a href="/auctions?sort=price&direction={{sort_price_next}}">Bid{{sort_price}}</a></th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{domainsMobile | safe}} {{domains | safe}}
</tbody> </tbody>
</table> </table>
</div></div> </div></div>

View File

@ -66,8 +66,9 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<h4 class="card-title">{{domain}}/<span class="stick-right">{{next}}</span></h4> <h4 class="d-none d-sm-none d-md-none d-lg-inline-block d-xl-inline-block card-title">{{domain}}/<span class="stick-right">{{next}}</span></h4>
<h6 class="text-muted card-subtitle mb-2">{{state}}</h6> <h4 class="d-print-none d-sm-inline-block d-md-inline-block d-lg-none d-xl-none d-xxl-none card-title">{{domain}}/<br><br><span class="stick-right">{{next}}</span></h4>
<h6 class="text-muted card-subtitle mb-2"><br>{{state}}</h6>
<h6 class="text-muted card-subtitle mb-2">Owner: {{owner}}</h6><a class="btn btn-primary" role="button" style="margin-right: 25px;" href="/manage/{{domain}}">Manage</a><a class="btn btn-primary" role="button" href="/auction/{{domain}}">Auction</a> <h6 class="text-muted card-subtitle mb-2">Owner: {{owner}}</h6><a class="btn btn-primary" role="button" style="margin-right: 25px;" href="/manage/{{domain}}">Manage</a><a class="btn btn-primary" role="button" href="/auction/{{domain}}">Auction</a>
</div> </div>
</div> </div>