-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add user manual to footer #5873
Conversation
WalkthroughThe changes involve modifications to the footer section of the HTML template located in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Footer
participant Documentation
User->>Footer: Access footer links
Footer->>User: Display social media links
Footer->>User: Display documentation link
User->>Documentation: Click on documentation link
Documentation-->>User: Redirect to documentation page
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
app/views/layouts/_footer.html.erb (2)
7-14
: Approved: Good restructuring of social media linksThe encapsulation of social media links in a new
<div>
improves the organization and aligns with the PR objective. The use oftarget="_blank"
withrel="noopener"
is a good security practice.Consider adding
aria-label
attributes to the social media links for better accessibility. For example:- <a href="https://twitter.com/DodonaEdu" target="_blank" rel="noopener"> + <a href="https://twitter.com/DodonaEdu" target="_blank" rel="noopener" aria-label="Dodona on Twitter"> <i class="mdi mdi-twitter"></i> </a> - <a href="https://facebook.com/DodonaEdu" target="_blank" rel="noopener"> + <a href="https://facebook.com/DodonaEdu" target="_blank" rel="noopener" aria-label="Dodona on Facebook"> <i class="mdi mdi-facebook"></i> </a>
16-16
: Approved: Good addition of the user manual linkThe new link to the user manual is well-placed and aligns with the PR objective. The use of I18n for localization is a good practice.
For consistency with other links in the footer, consider adding a CSS class to the link. For example:
- <%= link_to t("layout.menu.manual"), "https://docs.dodona.be/#{I18n.locale}" %> + <%= link_to t("layout.menu.manual"), "https://docs.dodona.be/#{I18n.locale}", class: "d-none d-lg-inline" %>This change would make the manual link behave similarly to other links that are hidden on smaller screens.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (1)
yarn.lock
is excluded by!**/yarn.lock
,!**/*.lock
📒 Files selected for processing (1)
- app/views/layouts/_footer.html.erb (1 hunks)
🧰 Additional context used
🔇 Additional comments (1)
app/views/layouts/_footer.html.erb (1)
Line range hint
1-27
: Overall: Good implementation of footer changesThe changes to the footer align well with the PR objectives. The restructuring of social media links and the addition of the user manual link improve the footer's organization and functionality. The implementation is solid, with good practices such as using
rel="noopener"
for external links and I18n for localization.Minor suggestions have been made for improving accessibility and maintaining consistency with existing styles. These small tweaks would further enhance the user experience and code quality.
This pull request adds a link to our documentation to the footer of our website.
I also grouped the Facebook and twitter icons so that the footer doesn't take up too much height on small screens.