Jonne Haß
8280556a47
Introduce message renderer
...
This new class replaces all existing server side message
rendering helpers and is the new global entry point for such
needs. All models with relevant fields now expose an instance
of MessageRenderer for those. MessageRenderer acts as
gateway between the existing processing solutions for markdown,
mentions and tags and provides a very flexible interface for
all output needs. This makes the API to obtain a message
in a certain format clear. As a result of centralizing the
processing a lot of duplication is eliminated. Centralizing
the message processing also makes it clear where to change
its behaviour, add new representations and what options
are already available.
2014-03-15 17:16:17 +01:00
Ruxton
a3113cce7c
Switched to using rails-timeago to make keeping on top of new versions of plugin easier
2014-01-20 09:33:35 +08:00
Jonne Haß
1a8541ff1a
Fix another 500 in the mobile site for signed out browsing
2013-09-10 23:41:29 +02:00
movilla
d1c679cc22
remove comments from the mobile site. Close #4225
2013-08-16 22:14:52 +02:00
Maxwell Salzberg
018e513130
remove disable_with depreciation warning.
2012-05-31 22:35:07 -07:00
Diaspora Europe
c98a728645
remove useless cancel button
2012-03-12 08:36:34 +01:00
Diaspora Europe
746e9c5cfc
nice more and comment buttons
2012-03-12 08:36:33 +01:00
Diaspora Europe
07cc4f06f4
added localized text in comment view
2012-03-08 14:37:39 +01:00
danielgrippi
bcbabc5fd2
Switch boilerplate for bootstrap 2 on mobile. [ci skip]
2012-01-29 11:51:47 -08:00
Maxwell Salzberg
ca7632776f
prevent mobile comments from 500ing
2012-01-14 11:52:24 -08:00
danielgrippi
bee8aa8bcd
remove unused files/methods
2012-01-11 02:26:12 -08:00
Sarah Mei
e0f8959647
Remove stray console.log. Not skipping CI because I think this may be causing the cucumber failures.
2012-01-08 03:24:11 -08:00
danielgrippi
1ecfa92c9e
DH DG; create comments via backbone
2012-01-07 14:23:21 -08:00
Dan Hansen
80f797a581
introduce comments
2012-01-07 14:23:21 -08:00
Maxwell Salzberg
2282fd35d1
kill no longer used youtube titles code with fire
2011-12-08 16:16:57 -08:00
danielgrippi
39b6abaa88
do includes before last(3), as last() returns an array, not an AR object
2011-11-04 16:46:30 -07:00
danielgrippi
3296477531
eager load author and profile for comments
2011-11-04 16:40:14 -07:00
Pistos
29573586c8
Merge branch 'master' into issue-2032-view-comments-on-public-post-without-login
2011-10-25 23:02:42 -04:00
Maxwell Salzberg
1a521a792a
zomg text collapse is finally back #thankgod
2011-10-25 19:46:09 -07:00
Pistos
3ce0806cbc
Merge branch 'master' into issue-2032-view-comments-on-public-post-without-login
...
Conflicts:
app/controllers/comments_controller.rb
app/helpers/comments_helper.rb
2011-10-25 22:21:08 -04:00
Manuel Schölling
6e325f8fd5
Introduced Commentable
2011-10-16 13:58:35 +02:00
Pistos
fae9aee425
Fix specs.
2011-10-15 14:47:09 -04:00
Pistos
35a0c56346
This fixes issue #2032 . Anyone can now view all comments on a public post without needing to log in.
2011-10-15 00:18:17 -04:00
Daniel Grippi
b7f4f81d28
Merge pull request #2148 from Pistos/issue-2007-comment-order-on-postgresql
...
Explicitly specify order of comments, since we cannot assume MySQL orderi
2011-10-12 16:09:18 -07:00
Manuel Schölling
f3ea8f424f
Added oEmbed support
2011-10-11 16:08:47 -07:00
Pistos
15b3cce6ee
Refactored ordering of post comments; moved it down to model level for greater reach (DRYer code).
...
Leaving the #order call in #last_three_comments caused the generated SQL to
have two conflicting ORDER BY components, which caused the query to return
invalid results. I removed the problem by removing #last_three_comments which
I consider a premature optimization.
2011-10-11 16:06:24 -04:00
Pistos
cd3e824bc1
Explicitly specify order of comments, since we cannot assume MySQL ordering (which is by id).
2011-10-08 22:59:44 -04:00
Maxwell Salzberg
a3eeb9f3c1
comment on tagged posts wip
2011-10-04 18:20:15 -07:00
maxwell
eef054dc5e
wip
2011-10-04 18:20:14 -07:00
Maxwell Salzberg
0f073387ac
IZ MS refactor commenting disabled
2011-10-03 15:20:43 -07:00
Lennart Prelle
0c42903d2c
delete dash in comments
2011-10-03 23:42:30 +02:00
Maxwell Salzberg
5ae9edc72e
fix comment bug
2011-09-28 13:44:58 -07:00
danielgrippi
d2d205ee08
make autoexpand work
2011-09-28 11:21:14 -07:00
danielgrippi
f34f0ce5fb
expand/collapse comments with animation; added collapse link on bottom
2011-09-27 21:09:27 -07:00
danielgrippi
9b057bdf16
added placeholder; force autofill off on comment fields; touched up mobile reshare view
2011-09-27 21:09:27 -07:00
danielgrippi
744ab579bd
adding comments work for one of two comment add buttons; added info on
...
posts; post show page.
2011-09-27 21:09:27 -07:00
danielgrippi
3b08fc8406
wip
2011-09-27 21:09:27 -07:00
danielgrippi
ea357a96ef
expand&collapse comments; added comment form (wip)
2011-09-27 21:09:27 -07:00
danielgrippi
d972802142
comment ajax on mobile.
2011-09-27 21:09:26 -07:00
danielgrippi
8c586c4567
added html5 boilerplate meta tags to mobile; stripped functionality to add back
2011-09-27 21:09:25 -07:00
danielgrippi
91e649977c
MS DG update copyright
2011-09-14 11:23:12 -07:00
behrooz shabani (everplays)
22bb6177d4
<p> can't be inside another one - breaks direction detection
...
we are applying direction of content on <p> & markdownify always
generates a <p> so we have something like <p
class="ltr"><p>...</p></p> but paragraph can't be inside another
paragraph & browsers sees something like <p
class="rtl"></p><p>...</p></p> so applied direction will be ignored
2011-09-10 16:14:30 +04:30
Maxwell Salzberg
eb6263084e
MS DH fix liking of posts and comment js; instansiate streamElement widgets when they are socketed
2011-09-03 12:09:34 -07:00
Maxwell Salzberg
272ab55482
Merge branch '1844-mentions-in-markdown' of https://github.com/brianwisti/diaspora into brianwisti-1844-mentions-in-markdown
2011-08-30 22:15:52 -07:00
Dan Hansen
dc947e449b
fix issues with comment stream, fix likes, merge comment stream and comment toggler widgets.
...
make timeago widget a simple wrapper for $.fn.timeago (we don't really need this.)
2011-08-30 21:07:40 -05:00
Brian Wisti
8aafc61071
merged with blank markdownify check
2011-08-30 12:55:52 -07:00
Dan Hansen
27d4fd8176
fix retractions, fix likes, backfill likes widget tests, remove typo from jasmine.yml, remove unneeded js files
...
require confirmation for comments in js, get rid of rails helper
2011-08-26 15:24:07 -05:00
Andrej Kacian
5d2d883dd3
Require confirmation when deleting a comment
2011-08-26 20:24:04 +02:00
Dan Hansen
6b040c7b4a
clean up websocket receiver, add specs to content updater
2011-08-22 20:03:38 -05:00
Dan Hansen
545611fffa
green?
2011-08-21 20:45:51 -05:00