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

Convert old accordions to Bootstrap #1558

Closed
wants to merge 1 commit into from
Closed

Convert old accordions to Bootstrap #1558

wants to merge 1 commit into from

Conversation

epwinchell
Copy link
Contributor

Issue #1557

This is the initial conversion of listnavs that @skateman can follow. @skateman , @martinpovolny or @dclarizio , please review.

Before:

screen shot 2015-02-04 at 11 04 01 am
screen shot 2015-02-04 at 11 03 37 am

After:

@epwinchell
Copy link
Contributor Author

This is the initial conversion of listnavs that @skateman can follow. @skateman , @martinpovolny or @dclarizio , please review.

- if !@default_search.blank? && @default_search.name == search.name
- search_name = search.description
- else
- search_name = search.description
Copy link
Member

Choose a reason for hiding this comment

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

why do we have the if here when the positive branch is the same as the negative one?

@miq-bot
Copy link
Member

miq-bot commented Feb 4, 2015

Checked commit https://github.com/epwinchell/manageiq/commit/271802d249ccdfe9c94dbd27844d7915ae622f0b with rubocop 0.27.1
0 files checked, 0 offenses detected
Everything looks good. 🍰

- else
- bgcolor = ""
- li_class = ""
- elsif @edit && @edit[:expression] && ((@edit[:expression][:selected] && @edit[:expression][:selected][:id] == 0 && search.id.to_i == 0) || (@edit[:expression][:selected] && @edit[:expression][:selected][:name] == search.name && !@edit[:custom_search]))
Copy link
Member

Choose a reason for hiding this comment

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

that programming inside haml looks pretty ugly, we shall get this out of the view, but probably as a part of some other PR

@skateman
Copy link
Member

skateman commented Feb 4, 2015

I've done a very quick review and it looks quite good, just some indentation issues.

@epwinchell i suggest you to use the haml-lint gem to find indentation and other issues. You can integrate it to your editor or just run it from the root directory of the repo like this:
haml-lint -i RuboCop .rubocop.yml <haml file or folder>

@epwinchell epwinchell closed this Feb 4, 2015
@martinpovolny martinpovolny added this to the Sprint 19 Ending Feb 16, 2015 milestone Feb 4, 2015
@Fryguy Fryguy modified the milestone: Sprint 19 Ending Feb 16, 2015 Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants