patx/hglab
update ux on index and profile templates
Commit 314f7f923322 · Harrison Erd · 2026-05-03 05:12 -0400
Comments
No comments yet.
Diff
diff --git a/templates/index.tpl b/templates/index.tpl
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -18,16 +18,15 @@
<h2>Popular repos</h2>
</div>
% if repos:
- <div class="repo-list">
% for repo in repos:
- <a class="repo-card" href="/{{repo['owner_username']}}/{{repo['name']}}">
- <strong>{{repo["owner_username"]}}/{{repo["name"]}}</strong>
- <span>{{repo["description"] or "No description yet."}}</span>
- <small>Updated {{repo["updated_at"]}}</small>
- </a>
+ <a style="color:black;" href="/{{repo['owner_username']}}/{{repo['name']}}"><strong>{{repo["owner_username"]}}/{{repo["name"]}}</strong></a>
+ <br>
+ {{repo["description"] or "No description yet."}}
+ <br>
+ <br>
% end
- </div>
% else:
<p class="empty">No repositories yet.</p>
% end
</section>
+
diff --git a/templates/profile.tpl b/templates/profile.tpl
--- a/templates/profile.tpl
+++ b/templates/profile.tpl
@@ -29,20 +29,18 @@
</nav>
</div>
% if repos:
- <div class="repo-list">
% for repo in repos:
- <a class="repo-card" href="/{{repo['owner_username']}}/{{repo['name']}}">
- <strong>{{repo["owner_username"]}}/{{repo["name"]}}</strong>
- <span>{{repo["description"] or "No description yet."}}</span>
- % if active_tab == "stars":
- <small>Starred {{repo["starred_at"]}} · {{repo["star_count"]}} stars</small>
- % else:
- <small>Updated {{repo["updated_at"]}} · {{repo["star_count"]}} stars</small>
- % end
- </a>
+ <a style="color:black;" href="/{{repo['owner_username']}}/{{repo['name']}}">
+ <strong>{{repo["owner_username"]}}/{{repo["name"]}}</strong></a>
+ <br>
+ {{repo["description"] or "No description yet."}}
+ <br>
+ <small>Updated {{repo["updated_at"]}} · {{repo["star_count"]}} stars</small>
+ <br>
+ <br>
% end
- </div>
% else:
<p class="empty">{{"No starred repositories yet." if active_tab == "stars" else "No repositories yet."}}</p>
% end
</section>
+