Skip to content

Commit 57f88ad

Browse files
committed
Polish user profile data viewer
1 parent 8f5f13a commit 57f88ad

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/static/a/userprofile.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ article > section > img.avatar {
2020
p.biography {
2121
font-size: 90%;
2222
}
23-
table.profiledata {
24-
clear: left;
25-
width: initial;
23+
section.profiledata {
24+
text-align: center;
2625
}
27-
table.profiledata th {
28-
width: 100px;
26+
section.profiledata span {
27+
display: inline-block;
28+
padding: 4px 6px;
2929
}
3030
table.stats td {
3131
text-align: center;

src/templates/User/View.phtml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,35 @@ require("./header.inc.phtml");
5050
<?php } else { ?>
5151
<p class="biography"><?php echo $safe_biography; ?></p>
5252
<?php } ?>
53+
</section>
5354
<?php if ($this->getContext()->profiledata) { ?>
54-
<table class="profiledata"><tbody>
55+
<section class="profiledata">
5556
<?php if ($this->getContext()->github) { ?>
56-
<tr><th class="right">GitHub:</th><td class="left"><a href="<?php echo $this->getContext()->github_uri; ?>"><?php echo htmlspecialchars($this->getContext()->github, ENT_HTML5, "UTF-8"); ?></a></td></tr>
57+
<span><strong>GitHub:</strong> <a href="<?php echo $this->getContext()->github_uri; ?>"><?php echo htmlspecialchars($this->getContext()->github, ENT_HTML5, "UTF-8"); ?></a></span>
5758
<?php } ?>
5859
<?php if ($this->getContext()->reddit) { ?>
59-
<tr><th class="right">Reddit:</th><td class="left"><a href="<?php echo $this->getContext()->reddit_uri; ?>"><?php echo htmlspecialchars($this->getContext()->reddit, ENT_HTML5, "UTF-8"); ?></a></td></tr>
60+
<span><strong>Reddit:</strong> <a href="<?php echo $this->getContext()->reddit_uri; ?>"><?php echo htmlspecialchars($this->getContext()->reddit, ENT_HTML5, "UTF-8"); ?></a></span>
6061
<?php } ?>
6162
<?php if ($this->getContext()->steam_id) { ?>
62-
<tr><th class="right">Steam:</th><td class="left"><a href="<?php echo $this->getContext()->steam_uri; ?>"><?php echo htmlspecialchars($this->getContext()->steam_id, ENT_HTML5, "UTF-8"); ?></a></td></tr>
63+
<span><strong>Steam:</strong> <a href="<?php echo $this->getContext()->steam_uri; ?>"><?php echo htmlspecialchars($this->getContext()->steam_id, ENT_HTML5, "UTF-8"); ?></a></span>
6364
<?php } ?>
6465
<?php if ($this->getContext()->facebook) { ?>
65-
<tr><th class="right">Facebook:</th><td class="left"><a href="<?php echo $this->getContext()->facebook_uri; ?>"><?php echo htmlspecialchars($this->getContext()->facebook, ENT_HTML5, "UTF-8"); ?></a></td></tr>
66+
<span><strong>Facebook:</strong> <a href="<?php echo $this->getContext()->facebook_uri; ?>"><?php echo htmlspecialchars($this->getContext()->facebook, ENT_HTML5, "UTF-8"); ?></a></span>
6667
<?php } ?>
6768
<?php if ($this->getContext()->twitter) { ?>
68-
<tr><th class="right">Twitter:</th><td class="left"><a href="<?php echo $this->getContext()->twitter_uri; ?>"><?php echo htmlspecialchars($this->getContext()->twitter, ENT_HTML5, "UTF-8"); ?></a></td></tr>
69+
<span><strong>Twitter:</strong> <a href="<?php echo $this->getContext()->twitter_uri; ?>"><?php echo htmlspecialchars($this->getContext()->twitter, ENT_HTML5, "UTF-8"); ?></a></span>
6970
<?php } ?>
7071
<?php if ($this->getContext()->instagram) { ?>
71-
<tr><th class="right">Instagram:</th><td class="left"><a href="<?php echo $this->getContext()->instagram_uri; ?>"><?php echo htmlspecialchars($this->getContext()->instagram, ENT_HTML5, "UTF-8"); ?></a></td></tr>
72+
<span><strong>Instagram:</strong> <a href="<?php echo $this->getContext()->instagram_uri; ?>"><?php echo htmlspecialchars($this->getContext()->instagram, ENT_HTML5, "UTF-8"); ?></a></span>
7273
<?php } ?>
7374
<?php if ($this->getContext()->skype) { ?>
74-
<tr><th class="right">Skype:</th><td class="left"><a href="<?php echo $this->getContext()->skype_uri; ?>"><?php echo htmlspecialchars($this->getContext()->skype, ENT_HTML5, "UTF-8"); ?></a></td></tr>
75+
<span><strong>Skype:</strong> <a href="<?php echo $this->getContext()->skype_uri; ?>"><?php echo htmlspecialchars($this->getContext()->skype, ENT_HTML5, "UTF-8"); ?></a></span>
7576
<?php } ?>
7677
<?php if ($this->getContext()->website) { ?>
77-
<tr><th class="right">Website:</th><td class="left"><a href="<?php echo $this->getContext()->website_uri; ?>"><?php echo htmlspecialchars($this->getContext()->website, ENT_HTML5, "UTF-8"); ?></a></td></tr>
78-
<?php } ?>
79-
</tbody></table>
78+
<span><strong>Website:</strong> <a href="<?php echo $this->getContext()->website_uri; ?>"><?php echo htmlspecialchars($this->getContext()->website, ENT_HTML5, "UTF-8"); ?></a></span>
8079
<?php } ?>
8180
</section>
81+
<?php } ?>
8282
<header>User Statistics</header>
8383
<section>
8484
<table class="stats"><tbody><tr>

0 commit comments

Comments
 (0)