initLab / initlanesis

A Genesis child-theme for the WordPress based website of init Lab (Sofia's hackerspace)
GNU General Public License v2.0
7 stars 6 forks source link

Оправяне на показването кой е в лаба с новата фауна #49

Open ignisf opened 9 years ago

ignisf commented 9 years ago

Да се напише малко js, който да яде json от https://fauna.initlab.org/users/present.json в следния формат:

[  
  {  
    "name":"Emil Georgiev",
    "url":"http://nelson-haha.com",
    "twitter":"svinqvmraka",
    "privacy":false,
    "picture":"https://secure.gravatar.com/avatar/1876d85e9a04d9f8ee416e9cb8613225?s=128\u0026d=retro"
  },
  {  
    "name":"Vladimir Vassilev",
    "url":"http://shtrak.eu/vloo",
    "twitter":"disastacre",
    "privacy":false,
    "picture":"https://secure.gravatar.com/avatar/87657399410254c7e4e298b0bbc8533f?s=128\u0026d=retro"
  },
  {  
    "name":"Александър Василев",
    "url":"",
    "twitter":null,
    "privacy":false,
    "picture":"https://secure.gravatar.com/avatar/4b3c6918f38fffe6899fd59262b06d7c?s=128\u0026d=retro"
  }
]

И да изписва кой е онлайн в лабта.

Markup: https://github.com/initLab/fauna/blob/1.x/app/views/users/present_embeddable.html.erb https://github.com/initLab/fauna/blob/1.x/app/views/users/_user.html.erb

CSS: https://github.com/initLab/fauna/blob/1.x/app/assets/stylesheets/embeddable.css.scss