~cedric/freshermeat

fa79f8031499ca1a50c19cc887cee0d062c726c6 — Cédric Bonhomme a month ago c3945ed
chg: [templates] added link to the ATOM feeds and added anchor type for atom feeds in project.html template.
2 files changed, 6 insertions(+), 6 deletions(-)

M freshermeat/templates/index.html
M freshermeat/templates/project.html
M freshermeat/templates/index.html => freshermeat/templates/index.html +2 -2
@@ 7,8 7,8 @@
            <h1>{% if config.FRESHERMEAT_INSTANCE_NAME %}{{ config.FRESHERMEAT_INSTANCE_NAME }}{% else %}Freshermeat{% endif %}</h1>
            <div class="float-right text-right">
                <h6>{{ nb_projects }} projects</h6>
                <h6>{{ nb_releases }} releases</h6>
                <h6>{{ nb_cves }} CVEs</h6>
                <h6>{{ nb_releases }} releases <a href="{{ url_for('recent_releases') }}" type="application/atom+xml"><i class="fa fa-rss" aria-hidden="true"></i></a></h6>
                <h6>{{ nb_cves }} CVEs <a href="{{ url_for('recent_cves') }}" type="application/atom+xml"><i class="fa fa-rss" aria-hidden="true"></i></a></h6>
            </div>
        </div>
    </div>

M freshermeat/templates/project.html => freshermeat/templates/project.html +4 -4
@@ 101,7 101,7 @@
                            {% endfor %}
                            </div>
                        </div>
			            <div class="tab-pane fade" id="dependencies" role="tabpanel" aria-labelledby="dependencies-tab">
                        <div class="tab-pane fade" id="dependencies" role="tabpanel" aria-labelledby="dependencies-tab">
                            <div class="list-group list-group-flush">
                            {% for project in project.dependencies  %}
                                <a class="list-group-item list-group-item-action" href="{{ url_for('project_bp.get', project_name=project.name) }}">{{ project.name }}</a>


@@ 138,15 138,15 @@
                    </ul>
                    <div class="tab-content" id="myTabContent">
                        <div class="tab-pane fade show active" id="releases" role="tabpanel" aria-labelledby="releases-tab">
                            <a href="{{ url_for('project_bp.recent_releases', project_name=project.name) }}"><i class="fa fa-rss-square" aria-hidden="true" title="Recent releases for {{ project.name }}"></i></a>
                            <a href="{{ url_for('project_bp.recent_releases', project_name=project.name) }}" type="application/atom+xml"><i class="fa fa-rss-square" aria-hidden="true" title="Recent releases for {{ project.name }}"></i></a>
                            <div id="project-releases" class="list-group list-group-flush"></div>
                        </div>
                        <div class="tab-pane fade" id="cves" role="tabpanel" aria-labelledby="cves-tab">
                            <a href="{{ url_for('project_bp.recent_cves', project_name=project.name) }}"><i class="fa fa-rss-square" aria-hidden="true" title="Recent releases for {{ project.name }}"></i></a>
                            <a href="{{ url_for('project_bp.recent_cves', project_name=project.name) }}" type="application/atom+xml"><i class="fa fa-rss-square" aria-hidden="true" title="Recent releases for {{ project.name }}"></i></a>
                            <div id="list-cves" class="list-group list-group-flush"></div>
                        </div>
                        <div class="tab-pane fade" id="news" role="tabpanel" aria-labelledby="news-tab">
                            <a href="{{ url_for('project_bp.recent_news', project_name=project.name) }}"><i class="fa fa-rss-square" aria-hidden="true" title="Recent news for {{ project.name }}"></i></a>
                            <a href="{{ url_for('project_bp.recent_news', project_name=project.name) }}" type="application/atom+xml"><i class="fa fa-rss-square" aria-hidden="true" title="Recent news for {{ project.name }}"></i></a>
                            <div id="project-news" class="list-group list-group-flush"></div>
                        </div>
                    </div>