-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up Issue endpoint and page #75
Comments
@Cleop most comments will not be edited and the ones that are will only have a few edits. |
This is now working however, credo is complaining about the duplicate functions that exist in the issue and comment views. So now I'm going to read up on how to get rid of this error by sharing the functions. This article talks about sharing functions between controllers but not specifically between views, I don't quite think it's what we're after here: This is a closer match: 'How to create a global view'https://stackoverflow.com/questions/32755415/how-to-create-a-global-view-in-phoenix-framework https://elixirforum.com/t/importing-a-function-from-sharedview/7241/4 'Importing a function from SharedView'What is SharedView? - see https://hexdocs.pm/phoenix/templates.html
I'm not sure if SharedView is for functions or meant only for templates though...
I don't think SharedView is right because it's meant to be in your templates folders: I think I'm going to try the global view concept. @nelsonic @RobStallion @SimonLab any thoughts? |
Managed to fix this one with @RobStallion. We've created a helpers folder in Then each view is requiring this file in: We also tested this by putting it in web.ex which worked, so if we want them globally we can do this in the future. |
@Cleop Sorry for the delay getting back to you. |
@RobStallion thanks for helping! 🎉 |
Relates: #14
As a user who has clicked on the meta table on github
I want to be able to see an overview of the history of my issue on the backup site
So that I can dig deeper into the comments/histories of interest to me
@nelsonic - should we show every version of every comment or just the latest version of each comment?
The text was updated successfully, but these errors were encountered: