Commit f1794f6a by Juho Salli

compolistaan muutoksia

1 parent 644c601a
......@@ -30,7 +30,7 @@ public class CompoFacade extends IntegerPkGenericFacade<Compo> {
CriteriaQuery<Compo> cq = cb.createQuery(Compo.class);
Root<Compo> root = cq.from(Compo.class);
cq.where(cb.equal(root.get(Compo_.event), eventbean.getCurrentEvent()));
cq.orderBy(cb.desc(root.get(Compo_.startTime)));
List<Compo> ret = getEm().createQuery(cq).getResultList();
return ret;
}
......
......@@ -95,9 +95,9 @@
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="" />
<h:outputText value="" />
</f:facet>
<h:link outcome="addentry">
<h:link outcome="addentry" rendered="#{compo.maxParticipantCount gt compo.compoEntries.size()}">
<f:param name="compoId" value="#{compo.id}" />
#{i18n['voting.allcompos.submitEntry']}
</h:link>
......
......@@ -528,7 +528,7 @@ viewexpired.title = Login expired. Please login again.
voting.allcompos.curEntries = # of entries
voting.allcompos.descri = Description
voting.allcompos.description = List of all compos and NIIDEN information.
voting.allcompos.description = List of all compos and theirs information.
voting.allcompos.endTime = End time
voting.allcompos.header = All compos
voting.allcompos.maxParts = Max participants
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!