Skip to content

Use Bootstrap div styles for exceptions #7

@ShaneCurcuru

Description

@ShaneCurcuru

Since many users will be including Bootstrap styles, it would be helpful to include those classes/styles when displaying non-user data from wunderbar, like in HTMLMarkup. _exception

https://github.com/rubys/wunderbar/blob/master/lib/wunderbar/html-methods.rb#L273

Something as simple as:

        if traceback_class
          _div.alert.alert_danger role: 'alert' do
            tag! :pre, text, :class=>traceback_class
          end        
        else
# ... etc.

should be harmless without bootstrap, but will properly put the exception traceback in a semantically appropriate alert box in the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions