Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add back to project page link in project related page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 4, 2012
1 parent 3c94dcb commit 7a19b71
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zanata-war/src/main/resources/messages.properties
Expand Up @@ -291,7 +291,7 @@ jsf.ManufacturerInfo=Red Hat, Inc
jsf.ServerMonitoring=Server Monitoring
jsf.MyProfile=My Profile
jsf.Name=Name
jsf.NameCreateANewVersion=#{projectIterationHome.instance.project.name}: Create a New Version
jsf.CreateANewVersion=Create a New Version
jsf.NameToolTip=The name should be first letter capitalized.
jsf.NativeName=Native Name
jsf.NeedReview=Need Review
Expand Down
12 changes: 9 additions & 3 deletions zanata-war/src/main/webapp/project/add_iteration.xhtml
Expand Up @@ -8,11 +8,17 @@
xmlns:rich="http://richfaces.org/rich"
template="../WEB-INF/layout/template.xhtml">

<ui:define name="page_title">#{projectHome.instance.name} - Add Version</ui:define>
<ui:define name="page_title">#{projectIterationHome.instance.project.name} - Add Version</ui:define>
<ui:define name="center_content">
<rich:jQuery selector="#tab_projects" query="addClass('ui-tabs-selected')" />
<h1>#{messages['jsf.NameCreateANewVersion']}</h1>

<h1>
#{messages['jsf.ProjectName']}:&nbsp;
<s:link id="project" styleClass="table_link" value="#{projectIterationHome.instance.project.name}" view="/project/project.xhtml">
<f:param name="slug" value="#{projectIterationHome.instance.project.slug}"/>
</s:link>
</h1>


<ui:include src="../WEB-INF/layout/iteration_edit_form.xhtml" />

</ui:define>
Expand Down
9 changes: 9 additions & 0 deletions zanata-war/src/main/webapp/project/assign_maintainer.xhtml
Expand Up @@ -26,6 +26,15 @@
return confirm("#{messages['jsf.AreYouSureYouWishToRemoveThisPersonAsProjectMaintainer']}");
}
</script>

<h1>
#{messages['jsf.ProjectName']}:&nbsp;
<s:link id="project" styleClass="table_link" value="#{projectHome.instance.name}" view="/project/project.xhtml">
<f:param name="slug" value="#{projectHome.instance.slug}"/>
</s:link>
</h1>


<rich:panel rendered="#{s:hasPermission(projectMaintainerManageAction.project, 'update')}">
<f:facet name="header">#{messages['jsf.ProjectMaintainerManager']}</f:facet>
<h:messages />
Expand Down
8 changes: 7 additions & 1 deletion zanata-war/src/main/webapp/project/edit.xhtml
Expand Up @@ -11,7 +11,13 @@
<ui:define name="page_title">#{projectHome.instance.name} - Edit</ui:define>
<ui:define name="center_content">
<rich:jQuery selector="#tab_projects" query="addClass('ui-tabs-selected')" />
<h1>#{projectHome.instance.name}</h1>

<h1>
#{messages['jsf.ProjectName']}:&nbsp;
<s:link id="project" styleClass="table_link" value="#{projectHome.instance.name}" view="/project/project.xhtml">
<f:param name="slug" value="#{projectHome.instance.slug}"/>
</s:link>
</h1>

<ui:include src="../WEB-INF/layout/project_edit_form.xhtml" />

Expand Down
8 changes: 7 additions & 1 deletion zanata-war/src/main/webapp/project/homepage_edit.xhtml
Expand Up @@ -11,7 +11,13 @@
<ui:define name="page_title">#{projectHome.instance.name} - Edit Home</ui:define>
<ui:define name="center_content">
<rich:jQuery selector="#tab_projects" query="addClass('ui-tabs-selected')" />
<h1>#{projectHome.instance.name}</h1>

<h1>
#{messages['jsf.ProjectName']}:&nbsp;
<s:link id="project" styleClass="table_link" value="#{projectHome.instance.name}" view="/project/project.xhtml">
<f:param name="slug" value="#{projectHome.instance.slug}"/>
</s:link>
</h1>

<h:form>
<rich:panel>
Expand Down

0 comments on commit 7a19b71

Please sign in to comment.