gb.reflog = reflog
gb.active = active
gb.starred = starred
-gb.owned = owned
\ No newline at end of file
+gb.owned = owned
+gb.starredAndOwned = starred & owned
\ No newline at end of file
import com.gitblit.wicket.PageRegistration;\r
import com.gitblit.wicket.PageRegistration.DropDownMenuItem;\r
import com.gitblit.wicket.PageRegistration.DropDownMenuRegistration;\r
-import com.gitblit.wicket.WicketUtils;\r
import com.gitblit.wicket.charting.GoogleChart;\r
import com.gitblit.wicket.charting.GoogleCharts;\r
import com.gitblit.wicket.charting.GooglePieChart;\r
return true;\r
}\r
\r
- protected void addActivity(UserModel user, Collection<RepositoryModel> repositories, int daysBack) {\r
+ protected void addActivity(UserModel user, Collection<RepositoryModel> repositories, boolean isStarred, int daysBack) {\r
Calendar c = Calendar.getInstance();\r
c.add(Calendar.DATE, -1*daysBack);\r
Date minimumDate = c.getTime();\r
\r
Fragment activityFragment = new Fragment("activity", "activityFragment", this);\r
add(activityFragment);\r
+ activityFragment.add(new Label("feedTitle", getString( isStarred ? "gb.starredAndOwned" : "gb.recentActivity")));\r
if (digests.size() == 0) {\r
// quiet or no starred repositories\r
if (repositories.size() == 0) {\r
// show daily commit digest feed\r
Collections.sort(digests);\r
DigestsPanel digestsPanel = new DigestsPanel("digests", digests);\r
- WicketUtils.setCssStyle(digestsPanel, "margin-top:-20px");\r
activityFragment.add(digestsPanel);\r
}\r
\r
\r
<div class="row" style="padding-top:5px;">\r
<div class="span7">\r
- <div class="hidden-phone markdown" style="padding-bottom: 30px;" wicket:id="repositoriesMessage">[repositories message]</div>\r
+ <div class="hidden-phone hidden-tablet markdown" style="padding-bottom: 30px;" wicket:id="repositoriesMessage">[repositories message]</div>\r
<div wicket:id="activity"></div>\r
</div>\r
<div class="span5">\r
</wicket:fragment>\r
\r
<wicket:fragment wicket:id="activityFragment">\r
- <div class="dashboardTitle"><wicket:message key="gb.recentActivity"></wicket:message> <small><span wicket:id="feedheader"></span></small></div>\r
+ <div class="dashboardTitle"><span class="hidden-phone hidden-tablet" wicket:id="feedTitle"></span> <small><span wicket:id="feedheader"></span></small></div>\r
<div class="hidden-phone hidden-tablet" style="text-align:center;">\r
<div wicket:id="charts"></div>\r
</div>\r
feed.addAll(active);\r
}\r
\r
- addActivity(user, feed, daysBack);\r
+ addActivity(user, feed, starred.size() > 0 || owned.size() > 0, daysBack);\r
\r
Fragment repositoryTabs;\r
if (UserModel.ANONYMOUS.equals(user)) {\r
\r
<div class="row">\r
<div class="span7"> \r
- <div class="markdown" style="padding-bottom: 30px;" wicket:id="projectMessage">[project message]</div>\r
+ <div class="hidden-phone hidden-tablet markdown" style="padding-bottom: 30px;" wicket:id="projectMessage">[project message]</div>\r
<div wicket:id="activity">[activity panel]</div>\r
</div>\r
<div class="span5">\r
- <div class="markdown" wicket:id="repositoriesMessage">[repositories message]</div>\r
+ <div class="hidden-phone hidden-tablet markdown" wicket:id="repositoriesMessage">[repositories message]</div>\r
<div wicket:id="repositoryList">[repository list]</div>\r
</div>\r
</div>\r
</div>\r
\r
<wicket:fragment wicket:id="activityFragment">\r
- <div class="dashboardTitle"><wicket:message key="gb.recentActivity"></wicket:message> <small><span wicket:id="feedheader"></span></small></div>\r
+ <div class="dashboardTitle"><span class="hidden-phone hidden-tablet" wicket:id="feedTitle"></span> <small><span wicket:id="feedheader"></span></small></div>\r
<div class="hidden-phone hidden-tablet" style="text-align:center;">\r
<div wicket:id="charts"></div>\r
</div>\r
});\r
\r
\r
- addActivity(user, repositories, daysBack);\r
+ addActivity(user, repositories, false, daysBack);\r
\r
if (repositories.isEmpty()) {\r
add(new Label("repositoryList").setVisible(false));\r