Subversion Repositories bacoAlunos

Rev

Rev 1703 | Rev 1712 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="org.hibernate.Criteria" %>
<%@ page import="org.hibernate.criterion.Criterion" %>
<%@ page import="pt.estgp.estgweb.domain.RepositoryDocument" %>

<%@ page import="java.util.List" %>
<%@ page import="static org.hibernate.criterion.Restrictions.eq" %>
<%@ page import="static org.hibernate.criterion.Restrictions.or" %>
<%@ page import="org.hibernate.criterion.Order" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.domain.RepositoryDocumentInterfaceImpl" %>
<%@ page import="jomm.dao.DaoException" %>
<%@ page import="pt.estgp.estgweb.services.data.repositorydocuments.interfaces.RepositoryInterface" %>
<%@ page import="pt.estgp.estgweb.domain.RepositoryDocumentCollection" %>
<%@ page import="org.hibernate.mapping.Collection" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld"  prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld"  prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld"  prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags"  prefix="bacoTags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nested:iterate id="doc" name="documents" type="pt.estgp.estgweb.domain.RepositoryDocumentImpl">

    <div class="repository-document">
        <div class="repository-title">
            <span class="title">${doc.title}</span>
                                            <span class="badge pull-right">
                                                    ${doc.publishDateStr}
                                            </span>
        </div>
        <div class="repository-description">${doc.description}</div>
        <div class=" repository-document-files" style="width: 100%">
            <logic:iterate id="docFile" name="doc" property="repositoryDocumentFiles" type="pt.estgp.estgweb.domain.RepositoryDocumentFile">
                <logic:equal value="true" name="docFile" property="visible">
                    <div class="repository-document-file" style="width: 100%">
                        <%
                            String repoTitleBorderBottom = "";
                        %>
                        <nested:equal value="false" name="interfaceBlock" property="showFileDescription">
                            <%
                                repoTitleBorderBottom = "border-radius-bottom";
                            %>
                        </nested:equal>
                        <nested:empty name="docFile" property="description">
                            <%
                                repoTitleBorderBottom = "border-radius-bottom";
                            %>
                        </nested:empty>
                        <%
                            request.setAttribute("repoTitleBorderBottom",repoTitleBorderBottom);
                        %>
                        <div class="repository-title ${repoTitleBorderBottom}">
                            <nested:equal value="true" name="interfaceBlock" property="showFileTitle">
                                <%--label="${docFile.repositoryFileProxy.repositoryFile.lastVersion.name}--%>
                                <bacoTags:repositoryFile  transactional="true" showHistory="false" iconClasses="pull-left repository-file-icon" repositoryStream="${docFile.repositoryFileProxy.repositoryStream}" label="${docFile.title}"/>
                            </nested:equal>
                            <nested:notEqual value="true" name="interfaceBlock" property="showFileTitle">
                                <bacoTags:repositoryFile  transactional="true" showHistory="false" iconClasses="pull-left repository-file-icon" repositoryStream="${docFile.repositoryFileProxy.repositoryStream}"/>
                            </nested:notEqual>
                        </div>


                        <nested:equal value="true" name="interfaceBlock" property="showFileDescription">
                            <nested:notEmpty name="docFile" property="description">
                                <div class="repository-description">
                                        ${docFile.description}
                                </div>
                            </nested:notEmpty>
                        </nested:equal>

                    </div>
                </logic:equal>
            </logic:iterate>
        </div>
    </div>

</nested:iterate>

Generated by GNU Enscript 1.6.5.2.