Pārlūkot izejas kodu

Now using gravatars on the interface under posts beside names

tags/v1.0.0
Isaac Bythewood pirms 11 gadiem
vecāks
revīzija
899de27165
3 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +0
    -3
      pinry/core/static/core/css/pinry.css
  2. +1
    -0
      pinry/core/static/core/js/pinry.js
  3. +1
    -0
      pinry/pins/templates/pins/recent_pins.html

+ 0
- 3
pinry/core/static/core/css/pinry.css Parādīt failu

@@ -143,9 +143,6 @@ body {
width: 30px;
height: 30px;
background-color: #555;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}

.pin-footer .text {


+ 1
- 0
pinry/core/static/core/js/pinry.js Parādīt failu

@@ -70,6 +70,7 @@ $(window).load(function() {
// Set which items are editable by the current user
for (var i=0; i < pins.objects.length; i++)
pins.objects[i].editable = (pins.objects[i].submitter.username == currentUser);
console.log(pins.objects);

// Use the fetched pins as our context for our pins template
var template = Handlebars.compile($('#pins-template').html());


+ 1
- 0
pinry/pins/templates/pins/recent_pins.html Parādīt failu

@@ -31,6 +31,7 @@
{{/if}}
<div class="pin-footer clearfix">
<div class="avatar pull-left">
<img src="http://gravatar.com/avatar/{{submitter.gravatar}}.jpg">
</div>
<div class="text pull-right">
<span class="dim">pinned by</span> {{submitter.username}}


Notiek ielāde…
Atcelt
Saglabāt