News Semantic Search / templates / index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>index</title>
    
</head>

<body>
    <div id="container">
        <div id="logo">
        </div>
        <form id="search-form" method="get">
            <fieldset>
                <input name="q" value="Type Your search here" />
                <select name="type">
                    {% for type in types %}
                        <option value="{{ type }}">{{ type }}</option>
                    {% endfor %}
                </select>
                <input type="submit" value="Search" />
            </fieldset>
        </form>
        {% if entities %}
            <h2>Results</h2>
            <ul id="entities">
                {% for item in entities %}
                    <li>
                        {{ item.entity.name }} ({{ item.relevancy }})
                        <ul>
                            {% for news in item.news %}
                                <li>
                                    <a href="{{ news.news.url }}">
                                        {% if news.news.thumbnail %}
                                            <img src="{{ news.news.thumbnail }}" />
                                        {% endif %}
                                        {{ news.news.title}}
                                     </a> 
                                     ({{ news.relevancy }})
                                    <ul>
                                        {% for result in news.results %}
                                            <li>
                                                {{ result.formated_detection }}
                                                ({{ result.relevance }})
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </li>
                            {% endfor %}
                        </ul>
                    </li>
                {% endfor %}
            </ul>
        {% endif %}
    </div>
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.