google-labs-jules[bot]
8564ec7a7c
Add comments to photos ( #4130 )
...
* Add comments to photos
Extend the photo show page to support comments by logged in users.
- Make the Comment model polymorphic.
- Update the Photo and Post models to have comments.
- Update the comments controller to handle the polymorphic association.
- Update the photo show page to display comments and a comment form.
- Create a reusable comments partial.
* Add migration
* Fix tests
* Fix tests
* Slightly fix tests
* Fix variables
* Add field
* Refactor slightly
* Refactor slightly
* Refactor slightly
* Refactor
* Photos respond to this as well
* Refactor to polymorphic_url
* Rename
* Wrong relationship
* Refactor and fix tests
* Fix relationships
* Fix rendering
* Fix tests
* Fix model tests
* Fix test
* Fix test
* Fix test
* Fix test
* Fix controller spec
* Fix view tests
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com >
2025-08-24 21:10:16 +09:30
Daniel O'Connor
000f4979db
Trial Ruby32 ( #3418 )
...
* Ruby 3.2/Bundler 2.4
* Fix creation
* Upgrade to js-routes 2. Put all js routes into a global namespace.
* Remove js-routes
* Remove
* Adjust ownership
* Appease codeclimate for the nth time
* Fix deprecation warning by explicitly calling to_fs
* Fix deprecation warning by explicitly calling to_fs
* Fix deprecation warning by explicitly calling to_fs
* Swap to will paginate successor for bootstrap
* Update app/views/members/show.html.haml
* Update app/views/plantings/index.rss.haml
* Update .env
* Update .devcontainer/.env
* Fix spec
* Update spec
* Fix spec
* Pin to 2.4.22
* 3 space indent
* Regenerate
* Update rubocop
2024-07-13 14:45:33 +09:30
Daniel O'Connor
49284eb169
Fix haml preview ( #3610 )
...
* HAML
* rewrite
* Fix specs - but likely still wrong
* Return temple
* Trailing line
* Fix specs
* This was rearranged, apparently.
* Fix tests
* Retain escaping
* Fix specs
* Rubocop
* Attempt to fix rendering
* Fix output
* Move away from filter
* Move away from filter
* Fix spec
* Fix specs
* Fix structure to avoid nested paragraph tags
2024-02-04 15:08:18 +10:30
Brenda Wallace
b0c8b11246
📝 Inline editing and display tidy ups ( #2200 )
...
* Inline editing and display tidy ups
2019-10-08 11:06:53 +13:00
Brenda Wallace
7f00a5063b
view spec updates
2019-06-25 21:06:32 +12:00
Brenda Wallace
dcfe49901e
Posts actions in dropdown menus
2019-05-19 10:20:35 +12:00
Brenda Wallace
f019969240
Tidy up posts
2019-05-18 21:41:41 +12:00
Brenda Wallace
1f916b8314
Post says Member Deleted when they are
2017-06-02 22:51:48 +12:00
Brenda Wallace
b538330785
Form to delete your own account
2017-05-21 21:51:44 +12:00
Brenda Wallace
c82f47bdda
Pass the ID from link to likesdestroy
2017-02-12 15:34:28 +13:00
Brenda Wallace
6afb12c157
Split up big methods in like controller
2017-02-12 15:23:58 +13:00
Brenda Wallace
6b8474e01b
Checks for cancan ability before allowing like
2017-02-12 15:23:58 +13:00
Brenda Wallace
acbb610e05
Haml clean up for posts views
2017-02-08 07:25:59 +13:00
Daniel O'Connor
07f7bd24d5
Clean up
2016-07-09 21:54:26 +09:30
Daniel O'Connor
04074ff372
Reimplement ajax like/unlike behaviour
2016-07-09 21:53:33 +09:30
Daniel O'Connor
d3dac756d6
Merge remote-tracking branch 'upstream/dev' into likeable
2016-07-09 21:08:33 +09:30
Lucas Nogueira
b911ebfd07
Replace pluralize calls
2016-06-08 22:03:40 -03:00
Daniel O'Connor
0a33ae8d37
Add an ajax like and unlike (though it hides after the user action)
2016-06-04 22:49:08 +09:30
Daniel O'Connor
bb25cbe5e2
Merge branch 'dev' of github.com:Growstuff/growstuff into likeable
2016-06-04 21:00:52 +09:30
Cesy Avon
259c1e1731
Fix #476 show edited and posted date on posts and comments
2016-06-02 14:37:33 +00:00
Cjay
2528d8af8a
Show edited date/time on posts/comments
2015-07-02 18:53:18 +08:00
Cjay Billones
bb88041fef
[Refactoring] Replace .count and .length with .size for collections
...
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.
Fix error in refactoring
Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Yoong Kang Lim
33a66dce1f
Starting stages of a like feature for posts.
2015-02-05 00:54:31 +11:00
Amy Hendrix
155d68bab1
Bootstrap3: inline lists
2014-07-13 18:46:08 -04:00
Amy Hendrix
f0cd8df6e0
Update column classes
2014-07-13 18:16:57 -04:00
Amy Hendrix
8d0d01991b
Bootstrap3 update: row classes
2014-07-13 15:15:08 -04:00
Skud
ce7bf82336
Make growstuff markdown actually work
2013-11-11 10:20:52 +11:00
Skud
0c3c9c7694
fixed up some bootstrap formatting (rows/spans)
2013-08-07 15:51:49 +10:00
Skud
29016c3211
Tweaked member avatars
...
The member's name (in text) is no longer part of the avatar itself, as
it looks pretty awful and/or redundant in some places where it's used.
2013-03-11 14:32:34 +11:00
Miles Gould
e470cf7358
Send "N comments" links to the comments anchors.
...
We have to call post.save in the posts/index specs, because post_path
fails unless the post has been persisted (and hence had its slug
generated). I think. That fixed the failing tests, anyway.
2013-02-27 15:39:42 +00:00
Miles Gould
ade199c17b
Better links for posts.
...
- add Permalink
- show Reply instead of "Comment" (iff you can comment)
- Edit link shows if you have permission to edit
- reorganised tests for post/_single
- posts/_single now requires current_user; patch tests for comments.
2013-02-27 12:53:50 +00:00
Miles Gould
3c13be2c0a
Left-align comment links in posts.
2013-02-27 11:56:13 +00:00
Miles Gould
5a18fcc0b4
Use a ul.inline for "N comments | Comment" links.
2013-02-27 11:45:58 +00:00
Jared McCorkindale
5f4d989cbd
add read link to post single and comment link
2013-02-27 11:45:58 +00:00
Jared McCorkindale
67d89826f4
add link to comment value
2013-02-27 11:45:58 +00:00
Jared McCorkindale
1c1fac0aa5
hiding comment count from post show
2013-02-27 11:45:58 +00:00
Jared McCorkindale
cf678a45c4
add count of comments to posts partial
2013-02-27 11:44:02 +00:00
Skud
11fa06b56c
show forum name in post meta
2013-02-20 14:54:38 +11:00
Skud
801347976e
Added edit/delete buttons to comment display
2013-02-08 17:24:06 +11:00
Skud
660c626581
show comments on post page
2013-02-08 16:36:15 +11:00
Skud
3b3f9d261f
can't create a new post without a post_id
2013-02-08 15:02:21 +11:00
Skud
ae59b1e18d
pass post_id through to comment
2013-02-08 14:37:57 +11:00
Skud
f66b4a64a3
added comment button to posts
2013-02-08 14:22:49 +11:00
Skud
87f14247e0
modified views to use CanCan
2013-02-01 13:24:32 +11:00
Skud
df76f2497a
renamed Post.member_id to Post.author
2013-01-13 20:57:28 +11:00
Skud
689448f87c
renamed Member.username to login_name
2013-01-13 19:14:46 +11:00
Skud
edb59e07ee
s/users/members/g -- all tests pass
...
There's still probably stuff broken, but this seemed like a good spot to
commit. Sorry for the enormous chunk of code. I was attempting to
update the views, but found that I needed to update a few things
elsewhere as well to make them work.
2013-01-13 18:33:43 +11:00
Skud
fc4c409cf4
Tests for views/posts now work.
...
Not going to make any claims for other views though! About to test them
next.
2013-01-13 16:18:48 +11:00
Skud
21f0f39bf9
Model and controller spec files pass.
...
Views are another matter (and will explode badly at this point)
2013-01-13 16:12:45 +11:00