This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'integration/master' of github.com:zanata/zanata into in…
…tegration/master
- Loading branch information
Showing
77 changed files
with
1,073 additions
and
1,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
zanata-war/src/main/java/org/zanata/action/Breadcrumbs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package org.zanata.action; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.jboss.seam.ScopeType; | ||
import org.jboss.seam.annotations.AutoCreate; | ||
import org.jboss.seam.annotations.Logger; | ||
import org.jboss.seam.annotations.Name; | ||
import org.jboss.seam.annotations.Scope; | ||
import org.jboss.seam.log.Log; | ||
|
||
@Name("breadcrumbs") | ||
@AutoCreate | ||
@Scope(ScopeType.PAGE) | ||
public class Breadcrumbs implements Serializable | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
@Logger | ||
Log log; | ||
|
||
private List<Breadcrumb> locations; | ||
|
||
|
||
public List<Breadcrumb> getLocations() | ||
{ | ||
if (locations == null) | ||
{ | ||
locations = new ArrayList<Breadcrumb>(); | ||
} | ||
return locations; | ||
} | ||
|
||
public void clear() | ||
{ | ||
getLocations().clear(); | ||
} | ||
|
||
public void addLocation(String location, String display) | ||
{ | ||
getLocations().add(new Breadcrumb(location, display)); | ||
} | ||
|
||
public void addLocation(String location, String display, int index) | ||
{ | ||
getLocations().add(index, new Breadcrumb(location, display)); | ||
} | ||
|
||
public class Breadcrumb | ||
{ | ||
private String location; | ||
private String display; | ||
|
||
public Breadcrumb(String location, String display) | ||
{ | ||
this.location = location; | ||
this.display = display; | ||
} | ||
|
||
public String getLocation() | ||
{ | ||
return location; | ||
} | ||
|
||
public String getDisplay() | ||
{ | ||
return display; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+656 Bytes
zanata-war/src/main/resources/images/crystal_project/_16x16/actions/admin_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-612 Bytes
zanata-war/src/main/resources/images/crystal_project/_16x16/actions/button_ok.png
Binary file not shown.
Binary file removed
BIN
-802 Bytes
zanata-war/src/main/resources/images/crystal_project/_16x16/actions/kuser.png
Binary file not shown.
Binary file removed
BIN
-3.6 KB
...war/src/main/resources/images/crystal_project/_16x16/actions/lin_agt_wrench.png
Binary file not shown.
Binary file removed
BIN
-3.34 KB
zanata-war/src/main/resources/images/crystal_project/_16x16/apps/easymoblog.png
Binary file not shown.
Binary file removed
BIN
-877 Bytes
...ar/src/main/resources/images/crystal_project/_16x16/filesystems/folder_home.png
Binary file not shown.
Binary file removed
BIN
-3.04 KB
...ta-war/src/main/resources/images/crystal_project/_16x16/mimetypes/templates.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+449 Bytes
zanata-war/src/main/resources/images/zanata-icon/16x16/chevron-down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+494 Bytes
zanata-war/src/main/resources/images/zanata-icon/16x16/chevron-right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+596 Bytes
zanata-war/src/main/resources/images/zanata-icon/16x16/eye-open.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
zanata-war/src/main/webapp/WEB-INF/layout/breadcrumbs.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div id="breadcrumbs_panel" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:s="http://jboss.com/products/seam/taglib" | ||
xmlns:rich="http://richfaces.org/rich"> | ||
|
||
<h:form> | ||
<s:link view="/home.xhtml" propagation="none" rendered="#{not empty breadcrumbs.locations}"> | ||
<img src="#{requestContextPath}/images/zanata-icon/16x16/house.png" alt="#{messages['jsf.ZanataMainDescription']}" style="width:14px;"/> | ||
</s:link> | ||
|
||
<ui:repeat value="#{breadcrumbs.locations}" var="breadcrumb" styleClass="breadcrumbs"> | ||
<img src="/images/zanata-icon/16x16/chevron-right.png"/> | ||
<s:link value="#{breadcrumb.display}" view="#{breadcrumb.location}" styleClass="breadcrumbs_link" rendered="#{not empty breadcrumb.location}"/> | ||
<s:span styleClass="breadcrumbs_display" rendered="#{empty breadcrumb.location}">#{breadcrumb.display}</s:span> | ||
</ui:repeat> | ||
</h:form> | ||
</div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.