Changeset 35761c in indico


Ignore:
Timestamp:
08/05/11 17:57:40 (22 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
a33bdd
Parents:
f88925
git-author:
Alberto Resco Perez <alberto.resco.perez@…> (06/20/11 11:05:38)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (08/05/11 17:57:40)
Message:

[IMP] Contributions results display event title.

  • When they are contributions in a search, it also displays the event title in the results.
  • Closes #184.
Location:
indico/MaKaC/webinterface/tpls
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/tpls/SearchNavigationForm.tpl

    rc0de5a r35761c  
    11<%page args="target=None, direction=None"/> 
     2<% import MaKaC %> 
    23% if direction == 'Next': 
    34  <% inc = 1 %> 
  • indico/MaKaC/webinterface/tpls/SearchResult.tpl

    rc0de5a r35761c  
    11<%page args="accessWrapper=None, result=None"/> 
     2<% import MaKaC %> 
     3 
    24<li class="${"searchResultEvent" if type(result) == ConferenceEntry else "searchResultContribution"}"> 
    35      % if result.getTitle(): 
     
    57      % endif 
    68      % if result.getStartDate(accessWrapper): 
    7     <small style="display: block;">${ result.getStartDate(accessWrapper).strftime("%Y-%m-%d %H:%M:%S (%Z)") }</small> 
    8     % endif 
     9         <small style="display: block;">${ result.getStartDate(accessWrapper).strftime("%Y-%m-%d %H:%M:%S (%Z)") }</small> 
     10      % endif 
     11      % if not isinstance(result.getTarget(),MaKaC.conference.Conference): 
     12         <span style="display: block; font-style:italic; font-size:x-small;">${ result.getConference().getTitle()}</span> 
     13      %endif 
    914 
    1015    <ul class="authorList"> 
Note: See TracChangeset for help on using the changeset viewer.