mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Added popovers to community social link logos.
This commit is contained in:
parent
32c74db282
commit
4a133f6998
3 changed files with 11 additions and 8 deletions
|
@ -48,22 +48,22 @@ block content
|
|||
.logo-row
|
||||
|
||||
a(href="http://blog.codecombat.com")
|
||||
img(src="/images/pages/community/logo_sett.png")
|
||||
img(src="/images/pages/community/logo_sett.png", data-content="Read the CodeCombat blog on Sett")
|
||||
|
||||
a(href="http://discourse.codecombat.com")
|
||||
img(src="/images/pages/community/logo_discourse.png")
|
||||
img(src="/images/pages/community/logo_discourse.png", data-content="Join the discussion on our Discourse forum")
|
||||
|
||||
a(href="https://www.facebook.com/codecombat")
|
||||
img(src="/images/pages/community/logo_facebook.png")
|
||||
img(src="/images/pages/community/logo_facebook.png", data-content="Like CodeCombat on Facebook")
|
||||
|
||||
a(href="https://twitter.com/CodeCombat")
|
||||
img(src="/images/pages/community/logo_twitter.png")
|
||||
img(src="/images/pages/community/logo_twitter.png", data-content="Follow CodeCombat on Twitter")
|
||||
|
||||
a(href="https://plus.google.com/115285980638641924488/posts")
|
||||
img(src="/images/pages/community/logo_g+.png")
|
||||
img(src="/images/pages/community/logo_g+.png", data-content="Join CodeCombat on Google+")
|
||||
|
||||
a(href="http://www.hipchat.com/g3plnOKqa")
|
||||
img(src="/images/pages/community/logo_hipchat.png")
|
||||
img(src="/images/pages/community/logo_hipchat.png", data-content="Chat with us in the public CodeCombat HipChat room")
|
||||
|
||||
.half-width
|
||||
|
||||
|
|
|
@ -18,4 +18,7 @@ module.exports = class CommunityView extends RootView
|
|||
else
|
||||
summary = $.i18n.t("contribute.#{characterClass}_summary")
|
||||
explanation = "<h4>#{title} #{titleDescription}</h4>#{summary}"
|
||||
$(@).popover(placement: 'bottom', trigger: 'hover', container: 'body', content: explanation, html: true)
|
||||
$(@).find('img').popover(placement: 'bottom', trigger: 'hover', container: 'body', content: explanation, html: true)
|
||||
|
||||
@$el.find('.logo-row img').each ->
|
||||
$(@).popover(placement: 'bottom', trigger: 'hover', container: 'body')
|
||||
|
|
|
@ -47,7 +47,7 @@ module.exports = class SaveLevelModal extends SaveVersionModal
|
|||
|
||||
shouldSaveEntity: (m) ->
|
||||
return false unless m.hasWriteAccess()
|
||||
if not m.get('system') and m.type() is 'LevelComponent'
|
||||
if m.get('system') is 'ai' and m.get('name') is 'Jitters' and m.type() is 'LevelComponent'
|
||||
# Trying to debug the occasional phantom all-Components-must-be-saved bug
|
||||
console.log "Should we save", m.get('system'), m.get('name'), m, "? localChanges:", m.hasLocalChanges(), "version:", m.get('version'), 'isPublished:', m.isPublished(), 'collection:', m.collection
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue