Skip to content
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

lint views/layouts #1978

Merged
merged 1 commit into from
Sep 17, 2023
Merged

lint views/layouts #1978

merged 1 commit into from
Sep 17, 2023

Conversation

20wildmanj
Copy link
Contributor

@20wildmanj 20wildmanj commented Sep 10, 2023

Summary

Summary generated by Reviewpad on 10 Sep 23 17:49 UTC

This pull request includes the following changes:

  • In the file admin.html.erb, the class attribute of a content_tag block has been updated to ensure it always has a value.

  • In the file app/views/layouts/application.html.erb, several changes have been made including adding an external stylesheet, modifying the dynamic content of the <title> tag, updating the error message for dropped courses, changing the rendering of flash messages, removing a blank line, adding a script tag for a GitHub button, and modifying the content for JavaScripts.

Overall, these changes involve adding conditional logic, improving error messages, and enhancing the rendering of flash messages.

Description

  • lint views/layouts using bundle exec erblint app/views/*(folder)/*(file).html.erb -a

Motivation and Context

  • Part of summer linting

How Has This Been Tested?

  • make sure doorkeeper renders properly (navigate via "Manage Autolab"->"Manage API applications")
  • ensure navbar renders properly for all user types (instructor, course assistant, student)
    • Instructor navbar should look like this:
      Screenshot 2023-09-10 at 1 35 05 PM
      • ensure all button links work
      • try to sudo (go to Manage Course), and then see that unsudo button shows up on navbar to get out of sudo view
      • ensure gradebook is instructor gradebook
    • Course assistant navbar should look like this (minus the Manage Autolab button):
      • Screenshot 2023-09-10 at 1 35 14 PM
        • Make sure course assistant has a section assigned, then see that button to view section gradebook shows up, and that link correctly goes to gradebook for that section
    • student navbar:
      Screenshot 2023-09-10 at 1 35 22 PM
      • ensure that button to view gradebook works and goes to student gradebook
    • Make sure admin navbar options work

Checklist:

  • I have run rubocop for style check. If you haven't, run overcommit --install && overcommit --sign to use pre-commit hook for linting

@reviewpad reviewpad bot requested a review from KesterTan September 10, 2023 17:49
@reviewpad reviewpad bot added medium Pull request is medium waiting-for-review labels Sep 10, 2023
Copy link
Contributor

@KesterTan KesterTan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@20wildmanj 20wildmanj added this pull request to the merge queue Sep 17, 2023
Merged via the queue into master with commit b4f3030 Sep 17, 2023
@20wildmanj 20wildmanj deleted the joeywildman-lint-layouts branch September 17, 2023 15:47
NicholasMy pushed a commit to UB-CSE-IT/Autolab that referenced this pull request Jan 5, 2024
(cherry picked from commit b4f3030)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Pull request is medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants