Skip to content

The Unified and Autonomous Development Platform

Refining permission

steve6f031fc5b2c2
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/base.css b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/base.css
index 34de1555b1..5fd1ceda56 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/base.css
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/base.css
@@ -38,6 +38,7 @@ ul.disc { list-style:disc outside; }
.piped:after { clear: both; }
ul.piped, ol.piped { margin: 0; padding: 0; }
+.piped.noborder a, .piped.noborder em { border: none; }
.action-links { white-space: nowrap; }
.action-links > .link-item { display: inline-block; margin-left: 12px; }
.action-links > .link-item:first-child { margin-left: 0;}
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
index 060b707205..f58e68f2ed 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
@@ -183,16 +183,23 @@ a.permission-link:hover { color: #333; text-decoration: none; }
.vcard-column { padding: 20px; }
.vcard-column .avatar { width: 200px; height: 200px; margin-bottom: 18px; }
.vcard-column .avatar > img { border-radius: 8px; }
-.vcard-name { margin: 0 0 18px; }
-.vcard-name b, .vcard-name em { display: block; white-space: nowrap; overflow: hidden; }
-.vcard-name b { font-size: 26px; }
+.vcard-name { margin: 0; }
+.vcard-name b, .vcard-name em { white-space: nowrap; overflow: hidden; }
+.vcard-name b { font-size: 26px; display: block; }
.vcard-name em { font-size: 24px; color: #888; font-style: normal; font-weight: 300; }
+.vcard-name a.img-link { font-size: 18px; color: #999; }
+.vcard-name a.img-link:hover { color: #09f; }
+
.vcard-stats { padding: 20px 0; border-top: 1px solid #ddd; overflow: hidden; }
.vcard-stats a { display: inline-block; color: #999; font-size: 12px; line-height: 1.123; width: 64px; overflow: hidden; text-align: center; }
.vcard-stats a > b { display: block; color: #333; font-size: 28px; }
.vcard-stats a:hover { text-decoration: none; color: #09f; }
.vcard-stats a:hover > b { color: #09f; }
+.account-actions { padding: 10px 20px; font-size: 20px; margin-bottom: 18px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
+.account-actions a { color: #999; }
+.account-actions a:hover { color: #333; text-decoration: none; }
+
.nav-piped > li { float: left; }
.nav-piped.nav-justified > li { float: none; }
@@ -267,7 +274,7 @@ ul.btn-list { list-style: none; margin: 0; }
*/
.page-nav.repo-head {padding-bottom: 10px; }
-a > .ind { font-weight: 300; color: #888; }
+a > .ind { font-weight: 300; color: #888; float: right; }
h1.repo-info { margin: 0; padding-left:60px; font-size: 20px; position: relative; font-weight: normal; min-height: 48px;}
.repo-info > .avatar { position: absolute; left: 0; top: 0; color: #ddd; width: 48px; height: 48px; padding: 2px; border: 1px solid #ddd; }
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/page.js b/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/page.js
index f5d7a03a3d..94fb3ac1f5 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/page.js
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/page.js
@@ -1,5 +1,6 @@
$(document).ready(function() {
$('#globalheader a').tooltip({placement: 'bottom'});
+ $('#main [data-toggle="tooltip"]').tooltip();
$('.focusable:first').focus();
$('.has-error:first .focusable').focus();
$('body').on('click', function (e) {
@@ -21,4 +22,6 @@ $(document).ready(function() {
}
});
});
+
+ $(document).foundation();
});
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/home/AccountHomePage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/home/AccountHomePage.html
index cbc6aefcc1..0b121d3b92 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/home/AccountHomePage.html
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/home/AccountHomePage.html
@@ -9,13 +9,17 @@
<h1 class="vcard-name">
<b wicket:id="fullname"></b>
<em wicket:id="username"></em>
+ <a class="img-link" data-toggle="tooltip" data-placement="right" title="edit your profile"><i class="icon-pencil"></i></a>
</h1>
- <div class="vcard-stats">
- <a href="#"><b>12</b> repos</a>
- <a href="#"><b>188</b> members</a>
- <a href="#"><b>188</b> followers</a>
- </div>
</div>
+
+
+ <ul class="list-group list-navs">
+ <li class="list-group-item active"><a>Projects <span class="ind">(8)</span></a></li>
+ <li class="list-group-item"><a>Members <span class="ind">(18)</span></a></li>
+ <li class="list-group-item"><a>Merge Requests <span class="ind">(28)</span></a></li>
+ <li class="list-group-item"><a>Activities</a></li>
+ </ul>
</div>
</div>
<div class="faux-cell content">