Add sponsors to sponsors page and add sponsor order field (#2284)
* Add sponsorship page * Fix schema * dev => DEV
This commit is contained in:
parent
c90be27677
commit
490645ea92
4 changed files with 23 additions and 24 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<img src="<%= asset_path "emoji/emoji-one-heart.png" %>" alt="emoji heart" />
|
||||
</span>
|
||||
</header>
|
||||
<% @sponsors = Organization.where(is_gold_sponsor: true) %>
|
||||
<% @sponsors = Organization.where(is_gold_sponsor: true).order("sponsorship_featured_number ASC") %>
|
||||
<% if @sponsors.any? %>
|
||||
<div class="widget-body">
|
||||
<% @sponsors.each do |organization| %>
|
||||
|
|
@ -26,6 +26,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="sponsors-love-message">
|
||||
We are grateful for wonderful sponsors who help sustain the DEV community.
|
||||
</div>
|
||||
<div class="sponsor-footer">
|
||||
<p>
|
||||
<a href="/sponsorship-info">Sponsorship Info/Policy</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -30,30 +30,15 @@
|
|||
<img src="<%= cloudinary("https://thepracticaldev.s3.amazonaws.com/i/2zmukvll98je8qsdyewq.png", 30) %>"><span style="background-color: #fefa87; padding:3px;">Gold Sponsors</span><img src="<%= cloudinary("https://thepracticaldev.s3.amazonaws.com/i/2zmukvll98je8qsdyewq.png", 30) %>">
|
||||
</h4>
|
||||
<div id="gold-sponsors">
|
||||
<a href="https://do.co/devto"><img src="<%= cloudinary("https://thepracticaldev.s3.amazonaws.com/i/85318v8gv77kzr8r2e58.png", 250) %>"></a>
|
||||
<% Organization.where(is_gold_sponsor: true).order("sponsorship_featured_number ASC").each do |organization| %>
|
||||
<a href="<%= organization.sponsorship_url %>"><img src="<%= cloudinary(organization.nav_image_url, 250) %>"></a>
|
||||
|
||||
<p>
|
||||
<a href="https://do.co/devto">Digital Ocean</a> is a much-loved cloud computing platform. I'm always impressed by how well-built
|
||||
<em>and well-documented</em> the Digital Ocean core products are. It's easier said than done, and they've been able to stay ahead of the curve.
|
||||
</p>
|
||||
<p>
|
||||
<%= organization.sponsorship_blurb_html.html_safe %>
|
||||
</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<a href="https://triplebyte.com/a/YU8fSn0/sponsorspage"><img src="<%= cloudinary("https://thepracticaldev.s3.amazonaws.com/i/r50i600z08ty2sjwey4o.png", 260) %>" /></a>
|
||||
|
||||
<p>
|
||||
<a href="https://triplebyte.com/a/YU8fSn0/sponsorspage">Triplebyte</a> allows developers to take one quiz and immediately get into the interview process with top tech companies if you qualify. It should be a part of any developer's job search process.
|
||||
</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<a href="https://www.gocd.org/?utm_campaign=dev_to&utm_medium=dev_homepage&utm_source=logo_link&utm_content=gocd_homepage&utm_term="><img src="<%= cloudinary("https://thepracticaldev.s3.amazonaws.com/i/ju8bfjsh7bcvw21p19nh.png", 290) %>" /></a>
|
||||
|
||||
<p>
|
||||
<a href="https://www.gocd.org/?utm_campaign=dev_to&utm_medium=dev_homepage&utm_source=logo_link&utm_content=gocd_homepage&utm_term=">GoCD</a> is a continuous delivery tool built by Thoughtworks, one of the most reputable software development firms we've ever dealt with. This is a feature-rich tool with some really fabulous visualization. Definitely worth considering for your organization or project.
|
||||
</p>
|
||||
|
||||
<hr />
|
||||
<hr />
|
||||
<% end %>
|
||||
</div>
|
||||
<h5> Interested in sponsoring dev.to? Email <a href="mailto:peter@dev.to">peter@dev.to</a></h5>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
class AddSponsorshipOrderToOrganizations < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :organizations, :sponsorship_featured_number, :integer, default: 0
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20190401193017) do
|
||||
ActiveRecord::Schema.define(version: 20190401213605) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -516,6 +516,7 @@ ActiveRecord::Schema.define(version: 20190401193017) do
|
|||
t.string "secret"
|
||||
t.string "slug"
|
||||
t.text "sponsorship_blurb_html"
|
||||
t.integer "sponsorship_featured_number", default: 0
|
||||
t.string "sponsorship_tagline"
|
||||
t.string "sponsorship_url"
|
||||
t.string "state"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue