Skip to content

Commit

Permalink
Revert "remove iframely:oembed"
Browse files Browse the repository at this point in the history
This reverts commit e4674ec.
  • Loading branch information
nleush committed Nov 27, 2014
1 parent e4674ec commit 1b9f52a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ insecure
less
iron:router@0.9.4
accounts-password
iframely:oembed

1 change: 1 addition & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ html-tools@1.0.2
htmljs@1.0.2
http@1.0.8
id-map@1.0.1
iframely:oembed@0.0.1
insecure@1.0.1
iron:core@0.3.4
iron:dynamic-template@0.4.1
Expand Down
7 changes: 7 additions & 0 deletions client/stylesheets/globals/embed.import.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.iframely-oembed {
margin: 0px 20px 20px 20px;
}

.iframely-oembed img {
max-width: 100%;
}
2 changes: 2 additions & 0 deletions client/stylesheets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
@import 'globals/message.import.less';
@import 'globals/notification.import.less';

@import 'globals/embed.import.less';

// Templates
@import '../templates/lists-show.import.less';
@import '../templates/auth.import.less';
Expand Down
3 changes: 3 additions & 0 deletions client/templates/todos-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
<input type="text" value="{{text}}" placeholder="Task name">
<a class="js-delete-item delete-item" href="#"><span class="icon-trash"></span></a>
</div>
{{#with embed}}
{{>oembed}}
{{/with}}
</template>
5 changes: 5 additions & 0 deletions client/templates/todos-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Template.todosItem.helpers({
},
editingClass: function() {
return Session.equals(EDITING_KEY, this._id) && 'editing';
},
embed: function() {
return {
url: this.text
};
}
});

Expand Down

0 comments on commit 1b9f52a

Please sign in to comment.