mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-28 22:00:25 -04:00
Two tiny profile improvements.
This commit is contained in:
parent
d1ceec16bb
commit
68f3eeb770
2 changed files with 6 additions and 6 deletions
app
|
@ -105,7 +105,7 @@ block content
|
|||
li
|
||||
a(href=project.link)
|
||||
if project.picture
|
||||
.project-image(style="background-image: url(/file/" + project.picture + ")")
|
||||
.project-image(style="background-image: url('/file/" + project.picture + "')")
|
||||
p= project.name
|
||||
div!= marked(project.description)
|
||||
|
||||
|
|
|
@ -59,11 +59,11 @@ module.exports = class ProfileView extends View
|
|||
|
||||
iconForLink: (link) ->
|
||||
icons = [
|
||||
{icon: 'facebook', name: 'Facebook', domain: 'facebook.com', match: /facebook/i}
|
||||
{icon: 'twitter', name: 'Twitter', domain: 'twitter.com', match: /twitter/i}
|
||||
{icon: 'github', name: 'GitHub', domain: 'github.com', match: /github/i}
|
||||
{icon: 'gplus', name: 'Google Plus', domain: 'plus.google.com', match: /(google|^g).?(\+|plus)/i}
|
||||
{icon: 'linkedin', name: 'LinkedIn', domain: 'linkedin.com', match: /(google|^g).?(\+|plus)/i}
|
||||
{icon: 'facebook', name: 'Facebook', domain: /facebook\.com/, match: /facebook/i}
|
||||
{icon: 'twitter', name: 'Twitter', domain: /twitter\.com/, match: /twitter/i}
|
||||
{icon: 'github', name: 'GitHub', domain: /github\.(com|io)/, match: /github/i}
|
||||
{icon: 'gplus', name: 'Google Plus', domain: /plus\.google\.com/, match: /(google|^g).?(\+|plus)/i}
|
||||
{icon: 'linkedin', name: 'LinkedIn', domain: /linkedin\.com/, match: /(google|^g).?(\+|plus)/i}
|
||||
]
|
||||
for icon in icons
|
||||
if (link.name.search(icon.match) isnt -1) or (link.link.search(icon.domain) isnt -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue