diff --git a/src/templates/search/search-message-preview.html b/src/templates/search/search-message-preview.html index 18ad0d0..e449429 100644 --- a/src/templates/search/search-message-preview.html +++ b/src/templates/search/search-message-preview.html @@ -1,43 +1,18 @@ {% load i18n %} -
  • - {% if result.Type %} - {{ result.Type }} - {% else %} - - {% endif %} + - {% if result.mailinglist %} - - {{ result.mailinglist }} - - {% endif %} +{% if result.mailinglist %} + + {{ result.mailinglist }} + +{% endif %} - - - {{ result.title }} - - + + + {{ result.title }} + + - - {{ result.description|striptags }} - -
    - - {% if result.from_address_user_url or result.from_address_full_name or result.last_author or result.Creator %} - {% trans "by" %} - {% endif %} - - {% if result.from_address_user_url %} - {{ result.from_address_user_full_name }} - {% elif result.from_address_full_name %} - {{ result.from_address_full_name }} - {% else %} - {% firstof result.last_author result.Creator "" %} - {% endif %} - - - {{ result.modified|timesince }} {% trans "ago" %} -
    -
  • +- {{ result.description|striptags }} diff --git a/src/templates/search/search-revision-preview.html b/src/templates/search/search-revision-preview.html new file mode 100644 index 0000000..1f99c44 --- /dev/null +++ b/src/templates/search/search-revision-preview.html @@ -0,0 +1,9 @@ +{% load i18n %} + + + + + {{ result.repository_name }} [{{ result.revision }}] + + +{% if result.message %}- {{ result.message }}{% endif %} diff --git a/src/templates/search/search-ticket-preview.html b/src/templates/search/search-ticket-preview.html new file mode 100644 index 0000000..e286b53 --- /dev/null +++ b/src/templates/search/search-ticket-preview.html @@ -0,0 +1,15 @@ +{% load i18n %} + + + + +{% if result.status %} + {{ result.status }} +{% endif %} + + + #{{ result.pk }} - {% filter striptags|truncatewords:50 %}{{ result.summary|escape }}{% endfilter %} + + + +- {{ result.description|striptags|truncatechars:150 }} diff --git a/src/templates/search/search-user-preview.html b/src/templates/search/search-user-preview.html index 8861878..cee56c5 100644 --- a/src/templates/search/search-user-preview.html +++ b/src/templates/search/search-user-preview.html @@ -1,11 +1,9 @@ {% load i18n %} -
  • - + - - {{ result.name }} - + + {{ result.name }} + - {% if result.institution %}- {{ result.institution }}{% endif %}{% if result.role %} - {{ result.role }}{% endif %} -
  • +{% if result.institution %}- {{ result.institution }}{% endif %}{% if result.role %} - {{ result.role }}{% endif %} diff --git a/src/templates/search/search-wiki-preview.html b/src/templates/search/search-wiki-preview.html index 141ea72..11fe25b 100644 --- a/src/templates/search/search-wiki-preview.html +++ b/src/templates/search/search-wiki-preview.html @@ -1,25 +1,9 @@ {% load i18n %} -
  • - + - - {{ result.name }} - + + {{ result.name }} + - {% if result.text %}- {{ result.text|truncatechars:150 }} {% endif %}{% if result.comment|truncatechars:150 %}- {{ result.comment }}{% endif %} - -
    - - {% if result.author %} - {% trans "by" %} - {% endif %} - - {% if result.author %} - {{ result.author }} - {% endif %} - - - {{ result.time }} {% trans "ago" %} -
    -
  • +{% if result.wiki_text %}- {{ result.wiki_text|truncatechars:150 }}{% elif result.comment %}- {{ result.comment|truncatechars:150 }}{% endif %} -- libgit2 0.21.2