Shalitha Suranga wants to merge 8 commits from /u/shalithasuranga/allura/ to master, 2018-12-12
Fix for [#8263]
Commit | Date | |
---|---|---|
2018-12-11 07:56:57 | Tree | |
2018-12-11 07:54:40 | Tree | |
2018-11-28 04:26:50 | Tree | |
2018-11-28 04:20:18 | Tree | |
2018-11-28 03:24:15 | Tree | |
[e874b1]
by
Shalitha Suranga
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/allura |
2018-11-27 07:40:28 | Tree |
2018-11-27 07:39:58 | Tree | |
[4f7fba]
by
Shalitha Suranga
,
pushed by
GitHub
Merge pull request #1 from apache/master Taking latest changes |
2018-10-05 04:33:18 | Tree |
Notice. Since data is passed to template from a template through widget. I had to create new method in app_globals.py
Minor feedback on the code: personally I would put
get_current_reaction
inhelpers.py
(and then it'd be used ash.get_current_reaction
) instead of inapp_globals.py
I think of globals as data and instances of objects that only exist once as shared global state. I guessemojize
could be moved too, I didn't realize that during earlier work.As for the display & functionality, I was actually thinking that the reactions div under the comment text would be where we indicate the current reaction. That way you can see your reaction without having to click on the action button. What you have done is a good first step though for sure. Also, my idea of displaying it below would imply that you can click on the emoji there to remove your reaction, which may complicate things having 2 places to remove a reaction. What do you think?
Hi.. Dave I will check about moving stuff to
helpers.py
. Yeah the current way requires a click to indicate whether user reacted or not. I think we have these optionsHow about selecting first option and doing other option later with another MR
your idea?
That sounds fine to me
Hi.. Dave
I made several commits for these changes.
I had to make divs in to one line since there was issue with whitespace + inline block.