Add RGSoC logo to the top of the sidebar.
Remove the current sponsors from the sidebar.
This commit is contained in:
parent
aaf35365b1
commit
a0ab577b6c
BIN
assets/images/rgsoc.jpg
Normal file
BIN
assets/images/rgsoc.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -8,7 +8,6 @@ unless window.TravisApplication
|
|||
@store = Travis.Store.create(
|
||||
adapter: Travis.RestAdapter.create()
|
||||
)
|
||||
@store.loadMany(Travis.Sponsor, Travis.SPONSORS)
|
||||
|
||||
@slider = new Travis.Slider()
|
||||
@pusher = new Travis.Pusher(Travis.config.pusher_key) if Travis.config.pusher_key
|
||||
|
|
|
@ -6,7 +6,6 @@ Travis.reopen
|
|||
init: ->
|
||||
@_super.apply this, arguments
|
||||
@tickables = []
|
||||
Travis.Ticker.create(target: this, interval: Travis.INTERVALS.sponsors)
|
||||
|
||||
tick: ->
|
||||
tickable.tick() for tickable in @tickables
|
||||
|
@ -44,51 +43,3 @@ Travis.reopen
|
|||
|
||||
$.values(groups)
|
||||
).property('length')
|
||||
|
||||
SponsorsController: Em.ArrayController.extend
|
||||
page: 0
|
||||
|
||||
arrangedContent: (->
|
||||
@get('shuffled').slice(@start(), @end())
|
||||
).property('shuffled.length', 'page')
|
||||
|
||||
shuffled: (->
|
||||
if content = @get('content') then $.shuffle(content) else []
|
||||
).property('content.length')
|
||||
|
||||
tick: ->
|
||||
@set('page', if @isLast() then 0 else @get('page') + 1)
|
||||
|
||||
pages: (->
|
||||
length = @get('content.length')
|
||||
if length then parseInt(length / @get('perPage') + 1) else 1
|
||||
).property('length')
|
||||
|
||||
isLast: ->
|
||||
@get('page') == @get('pages') - 1
|
||||
|
||||
start: ->
|
||||
@get('page') * @get('perPage')
|
||||
|
||||
end: ->
|
||||
@start() + @get('perPage')
|
||||
|
||||
Travis.DecksController = Travis.SponsorsController.extend
|
||||
needs: ['sidebar']
|
||||
perPage: 1
|
||||
|
||||
init: ->
|
||||
@_super.apply this, arguments
|
||||
|
||||
@get('controllers.sidebar').tickables.push(this)
|
||||
@set 'content', Travis.Sponsor.decks()
|
||||
|
||||
Travis.LinksController = Travis.SponsorsController.extend
|
||||
needs: ['sidebar']
|
||||
perPage: 6
|
||||
|
||||
init: ->
|
||||
@_super.apply this, arguments
|
||||
|
||||
@get('controllers.sidebar').tickables.push(this)
|
||||
@set 'content', Travis.Sponsor.links()
|
||||
|
|
|
@ -9,7 +9,6 @@ require 'models/hook'
|
|||
require 'models/job'
|
||||
require 'models/log'
|
||||
require 'models/repo'
|
||||
require 'models/sponsor'
|
||||
require 'models/user'
|
||||
require 'models/worker'
|
||||
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
require 'travis/model'
|
||||
|
||||
@Travis.Sponsor = Travis.Model.extend
|
||||
type: DS.attr('string')
|
||||
url: DS.attr('string')
|
||||
link: DS.attr('string')
|
||||
_image: DS.attr('string')
|
||||
|
||||
image: (->
|
||||
"/images/sponsors/#{@get('_image')}"
|
||||
).property('_image')
|
||||
|
||||
Travis.Sponsor.reopenClass
|
||||
decks: ->
|
||||
@platinum().concat @gold()
|
||||
|
||||
platinum: ->
|
||||
platinum = @byType('platinum').toArray()
|
||||
[sponsor] for sponsor in platinum
|
||||
|
||||
gold: ->
|
||||
gold = @byType('gold').toArray()
|
||||
gold.splice(0, 2) while gold.length > 0
|
||||
|
||||
links: ->
|
||||
@byType('silver')
|
||||
|
||||
byType: ->
|
||||
types = Array.prototype.slice.apply(arguments)
|
||||
Travis.Sponsor.filter (sponsor) -> types.indexOf(sponsor.get('type')) != -1
|
||||
|
|
@ -144,7 +144,3 @@ Travis.RestAdapter.map 'Travis.Job', {
|
|||
Travis.RestAdapter.map 'Travis.User', {
|
||||
_name: { key: 'name' }
|
||||
}
|
||||
|
||||
Travis.RestAdapter.map 'Travis.Sponsor', {
|
||||
_image: { key: 'image' }
|
||||
}
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
<div class='icon'></div>
|
||||
</div>
|
||||
|
||||
{{view view.DecksView}}
|
||||
|
||||
{{view view.LinksView}}
|
||||
|
||||
<h4>Support Rails Girls SoC</h4>
|
||||
<ul class="sponsors top">
|
||||
<li class="platinum">
|
||||
<a href="http://railsgirlssummerofcode.org/campaign">
|
||||
<img src="/images/rgsoc.jpg"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
<h4>{{t layouts.application.sponsors}}</h4>
|
||||
|
||||
<ul class="sponsors top">
|
||||
{{#each deck in controller}}
|
||||
{{#each deck}}
|
||||
<li {{bindAttr class="type"}}>
|
||||
<a {{bindAttr href="url"}}>
|
||||
<img {{bindAttr src="image"}}>
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<p class="hint">
|
||||
<a href="https://love.travis-ci.org/sponsors">
|
||||
{{{t layouts.application.sponsors_link}}}
|
||||
</a>
|
||||
</p>
|
|
@ -1,18 +0,0 @@
|
|||
<div class="box">
|
||||
<h4>{{t layouts.application.sponsors}}</h4>
|
||||
|
||||
<ul class="sponsors bottom">
|
||||
{{#each controller}}
|
||||
<li>
|
||||
{{{link}}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<p class="hint">
|
||||
<a href="https://love.travis-ci.org/sponsors">
|
||||
{{{t layouts.application.sponsors_link}}}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -25,18 +25,6 @@
|
|||
'active' if @get('activeTab') == 'jobs'
|
||||
).property('activeTab')
|
||||
|
||||
DecksView: Em.View.extend
|
||||
templateName: "sponsors/decks"
|
||||
init: ->
|
||||
@_super.apply this, arguments
|
||||
@set 'controller', @get('controller').container.lookup('controller:decks')
|
||||
|
||||
LinksView: Em.View.extend
|
||||
templateName: "sponsors/links"
|
||||
init: ->
|
||||
@_super.apply this, arguments
|
||||
@set 'controller', @get('controller').container.lookup('controller:links')
|
||||
|
||||
QueuesView: Em.View.extend
|
||||
templateName: 'queues/list'
|
||||
init: ->
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
@Travis.SPONSORS = [
|
||||
{ id: '1', type: 'platinum', url: "http://www.wooga.com", image: "wooga-205x130.png" }
|
||||
{ id: '2', type: 'platinum', url: "http://bendyworks.com", image: "bendyworks-205x130.png" }
|
||||
{ id: '3', type: 'platinum', url: "http://cloudcontrol.com", image: "cloudcontrol-205x130.png" }
|
||||
{ id: '4', type: 'platinum', url: "http://xing.de", image: "xing-205x130.png" }
|
||||
|
||||
{ id: '5', type: 'gold', url: "http://heroku.com", image: "heroku-205x60.png" }
|
||||
{ id: '6', type: 'gold', url: "http://soundcloud.com", image: "soundcloud-205x60.png" }
|
||||
{ id: '7', type: 'gold', url: "http://nedap.com", image: "nedap-205x60.png" }
|
||||
{ id: '8', type: 'gold', url: "http://mongohq.com", image: "mongohq-205x60.png" }
|
||||
{ id: '9', type: 'gold', url: "http://zweitag.de", image: "zweitag-205x60.png" }
|
||||
{ id: '10', type: 'gold', url: "http://kanbanery.com", image: "kanbanery-205x60.png" }
|
||||
{ id: '11', type: 'gold', url: "http://ticketevolution.com", image: "ticketevolution-205x60.jpg" }
|
||||
{ id: '12', type: 'gold', url: "http://plan.io/travis", image: "planio-205x60.png" }
|
||||
|
||||
{ id: '13', type: 'silver', link: "<a href=\"http://cobot.me\">Cobot</a><span>: The one tool to run your coworking space</span>" }
|
||||
{ id: '14', type: 'silver', link: "<a href=\"http://jumpstartlab.com\">JumpstartLab</a><span>: We build developers</span>" }
|
||||
{ id: '15', type: 'silver', link: "<a href=\"http://evilmartians.com\">Evil Martians</a><span>: Agile Ruby on Rails development</span>" }
|
||||
{ id: '16', type: 'silver', link: "<a href=\"http://zendesk.com\">Zendesk</a><span>: Love your helpdesk</span>" }
|
||||
{ id: '17', type: 'silver', link: "<a href=\"http://stripe.com\">Stripe</a><span>: Payments for developers</span>" }
|
||||
{ id: '18', type: 'silver', link: "<a href=\"http://basho.com\">Basho</a><span>: We make Riak!</span>" }
|
||||
{ id: '19', type: 'silver', link: "<a href=\"http://thinkrelevance.com\">Relevance</a><span>: We deliver software solutions</span>" }
|
||||
{ id: '20', type: 'silver', link: "<a href=\"http://mindmatters.de\">Mindmatters</a><span>: Software für Menschen</span>" }
|
||||
{ id: '21', type: 'silver', link: "<a href=\"http://amenhq.com\">Amen</a><span>: The best and worst of everything</span>" }
|
||||
{ id: '22', type: 'silver', link: "<a href=\"http://site5.com\">Site5</a><span>: Premium Web Hosting Solutions</span>" }
|
||||
{ id: '23', type: 'silver', link: "<a href=\"http://www.crowdint.com\">Crowd Interactive</a><span>: Leading Rails consultancy in Mexico</span>" }
|
||||
{ id: '24', type: 'silver', link: "<a href=\"http://www.atomicobject.com/detroit\">Atomic Object</a><span>: Work with really smart people</span>" }
|
||||
{ id: '25', type: 'silver', link: "<a href=\"http://codeminer.com.br\">Codeminer</a><span>: smart services for your startup</span>" }
|
||||
{ id: '26', type: 'silver', link: "<a href=\"http://cloudant.com\">Cloudant</a><span>: grow into your data layer, not out of it</span>" }
|
||||
{ id: '27', type: 'silver', link: "<a href=\"http://gidsy.com\">Gidsy</a><span>: Explore, organize & book unique things to do!</span>" }
|
||||
{ id: '28', type: 'silver', link: "<a href=\"http://5apps.com\">5apps</a><span>: Package & deploy HTML5 apps automatically</span>" }
|
||||
{ id: '29', type: 'silver', link: "<a href=\"http://meltmedia.com\">Meltmedia</a><span>: We are Interactive Superheroes</span>" }
|
||||
{ id: '30', type: 'silver', link: "<a href=\"http://www.fngtps.com\">Fingertips</a><span> offers design and development services</span>" }
|
||||
{ id: '31', type: 'silver', link: "<a href=\"http://www.engineyard.com\">Engine Yard</a><span>: Build epic apps, let us handle the rest</span>" }
|
||||
{ id: '32', type: 'silver', link: "<a href=\"http://malwarebytes.org\">Malwarebytes</a><span>: Defeat Malware once and for all.</span>" }
|
||||
{ id: '33', type: 'silver', link: "<a href=\"http://readmill.com\">Readmill</a><span>: The best reading app on the iPad.</span>" }
|
||||
{ id: '34', type: 'silver', link: "<a href=\"http://www.mdsol.com\">Medidata</a><span>: clinical tech improving quality of life</span>" }
|
||||
{ id: '35', type: 'silver', link: "<a href=\"http://coderwall.com/teams/4f27194e973bf000040005f0\">ESM</a><span>: Japan's best agile Ruby/Rails consultancy</span>" }
|
||||
{ id: '36', type: 'silver', link: "<a href=\"http://twitter.com\">Twitter</a><span>: instantly connects people everywhere</span>" }
|
||||
{ id: '37', type: 'silver', link: "<a href=\"http://agileanimal.com\">AGiLE ANiMAL</a><span>: we <3 Travis CI.</span>" }
|
||||
{ id: '38', type: 'silver', link: "<a href=\"http://tupalo.com\">Tupalo</a><span>: Discover, review & share local businesses.</span>" }
|
||||
{ id: '39', type: 'silver', link: "<a href=\"http://pivotallabs.com\">Pivotal Labs</a>"}
|
||||
{ id: '40', type: 'silver', link: "<a href=\"http://fiksu.com\">Fiksu</a>"}
|
||||
{ id: '41', type: 'silver', link: "<a href=\"http://saucelabs.com\">Sauce Labs</a>"}
|
||||
{ id: '42', type: 'silver', link: "<a href=\"http://mogotest.com\">Mogotest</a><span>: Never be embarrassed by a visually broken site again.</span>"}
|
||||
{ id: '43', type: 'silver', link: "<a href=\"http://busyconf.com\">BusyConf</a><span>: Conferences and Events Made Easy</span>"}
|
||||
]
|
||||
|
|
@ -52,7 +52,7 @@ $.extend Travis,
|
|||
{ name: 'mac_osx', display: 'Mac and OSX' }
|
||||
]
|
||||
|
||||
INTERVALS: { sponsors: -1, times: -1, updateTimes: 1000 }
|
||||
INTERVALS: { times: -1, updateTimes: 1000 }
|
||||
|
||||
storage: (->
|
||||
storage = null
|
||||
|
@ -94,7 +94,6 @@ require 'templates'
|
|||
require 'views'
|
||||
|
||||
require 'config/locales'
|
||||
require 'data/sponsors'
|
||||
|
||||
require 'travis/instrumentation'
|
||||
|
||||
|
|
BIN
public/images/rgsoc.jpg
Normal file
BIN
public/images/rgsoc.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue
Block a user