Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sponsor model (implements #465) #1106

Merged
merged 8 commits into from
Apr 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add sponsors to project page
  • Loading branch information
vidya-ram committed Apr 22, 2021
commit 20abd61febf4a77609a9b4dfbf2d8d8b93728662
5 changes: 5 additions & 0 deletions funnel/static/css/app.css
Original file line number Diff line number Diff line change
@@ -3632,6 +3632,11 @@ a.loginbutton.hidden,
.project-details__box__content--lesspadding {
padding: 0;
}
.project-banner
.project-details__box
.project-details__box__content--nopadding {
padding: 0 !important;
}
.project-banner .project-details__box .card__calendar {
padding: 0;
}
3 changes: 3 additions & 0 deletions funnel/static/sass/_project.scss
Original file line number Diff line number Diff line change
@@ -199,6 +199,9 @@
.project-details__box__content--lesspadding {
padding: 0;
}
.project-details__box__content--nopadding {
padding: 0 !important;
}

.card__calendar {
padding: 0;
42 changes: 31 additions & 11 deletions funnel/templates/project_layout.html.jinja2
Original file line number Diff line number Diff line change
@@ -379,26 +379,46 @@
{{ project_details(project) }}
</div>
</div>
<p class="mui--text-caption mui--text-light">{% trans %}Hosted by{% endtrans %}</p>
<div class="card card--shaped">
<div class="card__body project-banner">
<p class="mui--text-subhead mui--text-bold mui--text-light">{% trans %}Hosted by{% endtrans %}</p>
<div class="project-banner margin-bottom">
<div class="project-details__box">
<div class="project-details__box__content project-details__box__content--nopadding">
<div class="project-banner__profile-details">
{%- if project.profile.logo_url.url %}
<a href="{{ project.profile.url_for() }}" class="project-banner__profile-details__logo-wrapper" data-ga="View project">
<img class="project-banner__profile-details__logo_wrapper__logo" src="{{ project.profile.logo_url }}" alt="{{ project.profile.title }}"/>
</a>
{% endif %}
<a href="{{ project.profile.url_for() }}" class="mui--text-dark mui--text-subhead mui--text-bold nounderline project-banner__profile-details__text" data-cy="profile-link">{{ project.profile.title }}</a>
</div>
{% if project.profile.description.html %}
<div class="mui--text-body2 mui--text-light">{{ project.profile.description.html|preview(min=200, max=300) }}<a href="{{ project.profile.url_for() }}" class="chip mui--text-body2 nounderline">{% trans %}more{% endtrans %}{{ faicon(icon='caret-right-solid', baseline=false, css_class='mui--align-middle') }}</a></div>
{% endif %}
</div>
</div>
</div>
{% if project.sponsor_memberships %}
<p class="mui--text-subhead mui--text-bold top-padding mui--text-light">{% trans %}Supported by{% endtrans %}</p>
{%- endif %}
{% for sponsor in project.sponsor_memberships %}
<div class="project-banner margin-bottom">
<div class="project-details__box">
<div class="project-details__box__content">
<div class="project-details__box__content project-details__box__content--nopadding">
<div class="project-banner__profile-details">
{%- if project.profile.logo_url.url %}
<a href="{{ project.profile.url_for() }}" class="project-banner__profile-details__logo-wrapper" data-ga="View project">
<img class="project-banner__profile-details__logo_wrapper__logo" src="{{ project.profile.logo_url }}" alt="{{ project.profile.title }}"/>
{%- if sponsor.profile.logo_url.url %}
<a href="{{ sponsor.profile.url_for() }}" class="project-banner__profile-details__logo-wrapper" data-ga="View project">
<img class="project-banner__profile-details__logo_wrapper__logo" src="{{ sponsor.profile.logo_url }}" alt="{{ sponsor.profile.title }}"/>
</a>
{% endif %}
<a href="{{ project.profile.url_for() }}" class="mui--text-dark mui--text-subhead mui--text-bold nounderline project-banner__profile-details__text" data-cy="profile-link">{{ project.profile.title }}</a>
<a href="{{ sponsor.profile.url_for() }}" class="mui--text-dark mui--text-subhead mui--text-bold nounderline project-banner__profile-details__text" data-cy="profile-link">{{ sponsor.profile.title }}</a>
</div>
{% if project.profile.description.html %}
<div class="mui--text-body2 mui--text-light">{{ project.profile.description.html|preview(min=200, max=300) }}<a href="{{ project.profile.url_for() }}" class="chip mui--text-body2 nounderline">{% trans %}more{% endtrans %}{{ faicon(icon='caret-right-solid', baseline=false, css_class='mui--align-middle') }}</a></div>
{% if sponsor.profile.description.html %}
<div class="mui--text-body2 mui--text-light">{{ sponsor.profile.description.html|preview(min=200, max=300) }}<a href="{{ sponsor.profile.url_for() }}" class="chip mui--text-body2 nounderline">{% trans %}more{% endtrans %}{{ faicon(icon='caret-right-solid', baseline=false, css_class='mui--align-middle') }}</a></div>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
{% block basecontentcolumninner %}{% endblock %}
</div>
</div>