[Notice] Announcing the End of Demo Server [Read me]

fix CSS/JS for repository URL at project home (HIVE-173)
@e73408144206f64340eb87a5d2ab6dded726b2c7
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -1943,6 +1943,23 @@ |
1943 | 1943 |
} |
1944 | 1944 |
} |
1945 | 1945 |
} |
1946 |
+.project-hometop-wrap { |
|
1947 |
+ display:block; clear:both; |
|
1948 |
+ height:30px; |
|
1949 |
+ |
|
1950 |
+ .vcs-wrap { |
|
1951 |
+ .repo-info; |
|
1952 |
+ padding:0; line-height:30px; |
|
1953 |
+ |
|
1954 |
+ .repo-url { width:540px; } |
|
1955 |
+ } |
|
1956 |
+ |
|
1957 |
+ .issue-wrap { |
|
1958 |
+ strong.num { |
|
1959 |
+ &.open { color:@blue; } |
|
1960 |
+ } |
|
1961 |
+ } |
|
1962 |
+} |
|
1946 | 1963 |
|
1947 | 1964 |
.readme { |
1948 | 1965 |
padding: 5px; |
--- app/views/project/projectHome.scala.html
+++ app/views/project/projectHome.scala.html
... | ... | @@ -9,17 +9,18 @@ |
9 | 9 |
<div class="page"> |
10 | 10 |
@prjmenu(project, utils.MenuType.PROJECT_HOME, "") |
11 | 11 |
|
12 |
- <div class="input-prepend"> |
|
13 |
- <span class="add-on">@project.vcs</span> |
|
14 |
- <input type="text" value="@CodeApp.getURL(project.owner, project.name)" readonly="true" |
|
15 |
- style="cursor: auto; background-color:#ffffff"> |
|
16 |
- <div class="btn-group pull-right"> |
|
17 |
- <a href="@routes.IssueApp.issues(project.owner, project.name, State.OPEN.state)" class="btn"> |
|
18 |
- @Issue.countIssues(project.id, State.OPEN) @Messages("issue.state.open") |
|
19 |
- </a> |
|
12 |
+ <div class="input-prepend project-hometop-wrap"> |
|
13 |
+ <div class="vcs-wrap pull-left"> |
|
14 |
+ <span class="clone-label"><strong class="@project.vcs">@project.vcs</strong></span><!-- |
|
15 |
+ --><input id="repositoryURL" type="text" class="text repo-url" readonly="readonly" value="@CodeApp.getURL(project.owner, project.name)"> |
|
16 |
+ </div> |
|
17 |
+ <div class="issue-wrap btn-group pull-right"> |
|
20 | 18 |
<button class="btn" disabled="true">@Messages("menu.issue")</button> |
19 |
+ <a href="@routes.IssueApp.issues(project.owner, project.name, State.OPEN.state)" class="btn"> |
|
20 |
+ @Messages("issue.state.open") <strong class="num open">@Issue.countIssues(project.id, State.OPEN)</strong> |
|
21 |
+ </a> |
|
21 | 22 |
<a href="@routes.IssueApp.issues(project.owner, project.name, State.CLOSED.state)" class="btn"> |
22 |
- @Issue.countIssues(project.id, State.CLOSED) @Messages("issue.state.closed") |
|
23 |
+ @Messages("issue.state.closed") <strong class="num">@Issue.countIssues(project.id, State.CLOSED)</strong> |
|
23 | 24 |
</a> |
24 | 25 |
</div> |
25 | 26 |
</div> |
... | ... | @@ -112,4 +113,10 @@ |
112 | 113 |
@markdown() |
113 | 114 |
</div> |
114 | 115 |
</div> |
116 |
+ |
|
117 |
+<script type="text/javascript"> |
|
118 |
+$(document).ready(function(){ |
|
119 |
+ $hive.loadModule("project.Home"); |
|
120 |
+}); |
|
121 |
+</script> |
|
115 | 122 |
}(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?