Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05640b3

Browse files
authored
use logo placement interface for jobs/download sponsors (python#1923)
1 parent6da68d4 commit05640b3

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

‎templates/downloads/index.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ <h2 class="widget-title">Looking for a specific release?</h2>
7676

7777
<divclass="row">
7878
<divclass="sidebar-widget download-widget">
79-
{% box 'download-sponsors' %}
80-
{% comment %}
81-
Remove the comment block to replace the content box by
82-
the new sponsor logo placement
8379
{% list_sponsors 'download' %}
84-
{% endcomment %}
8580
</div>
8681
</div>
8782

‎templates/jobs/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "base.html" %}
22
{% load boxes %}
3+
{% load sponsors %}
34

45
{% block body_attributes %}class="jobs"{% endblock %}
56

@@ -85,7 +86,7 @@ <h1 class="call-to-action">{% block header_action %}{{ jobs_count }} jobs on the
8586
</div>
8687

8788
<divclass="sidebar-widget">
88-
{%box 'jobs-sponsors' %}
89+
{%list_sponsors 'jobs' %}
8990
</div>
9091

9192
{% block right_sidebar_footer %}{% endblock %}

‎templates/sponsors/partials/sponsors-list.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ <h2 class="widget-title">Sponsors</h2>
99
{% endthumbnail %}
1010
{% endfor %}
1111

12+
{% elif logo_place == "jobs" %}
13+
<h3class="widget-title">Job Board Sponsors</h3>
14+
{% for sponsorship in sponsorships %}
15+
{% thumbnail sponsorship.sponsor.web_logo "x100" format="PNG" quality=100 as im %}
16+
<imgsrc="{{ im.url }}"alt="{{ sponsorship.sponsor.name }} logo"height="100px">
17+
{% endthumbnail %}
18+
{% endfor %}
19+
1220
{% elif logo_place == "sponsors" %}
1321

1422
{% for package, placement_info in sponsorships_by_package.items %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp