I have deleted my branch and the PR, re-pushed and recreated a PR with proper branch name.
Description This PR contains both a helper to grab the main image of an artifact and required changes to display highlights and news from the database. It includes changed to the db, model, controllers and views.
You will need the sql files from #database_schema
Right now it pulls a limit of 6 items, we would have to order news per date and Maybe select highlights randomly. Have to see with @RoLoDeXx @amanbis and @amaaniqbal
@RoLoDeXx will fix the css for the images so don't mind their weird height.
@RoLoDeXx don't hesitate to change the home view as you like, I just wanted to provide functionality.
Type of PR This PR is a feature
Tests Visit the home page and see that you can see an image, a title and a body for highlights
Checklist:
-
My pull request has a descriptive title (not a vague title like "Update index.md
"). -
My pull request targets the phoenix/develop
branch of the repository. -
My commit messages follow best practices. -
My code follows the established code style of the repository. -
I added tests for the changes I made (if applicable). -
I added or updated documentation (if applicable). -
I tried running the project locally and verified that there are no visible errors.