Clean up flash display in views (#2336)
* Add flashes partial to DRY up admin/auth layouts * Further consolidate flash messages
This commit is contained in:
		@ -13,13 +13,7 @@
 | 
			
		||||
      .content
 | 
			
		||||
        %h2= yield :page_title
 | 
			
		||||
 | 
			
		||||
        - if flash[:notice]
 | 
			
		||||
          .flash-message.notice
 | 
			
		||||
            %strong= flash[:notice]
 | 
			
		||||
 | 
			
		||||
        - if flash[:alert]
 | 
			
		||||
          .flash-message.alert
 | 
			
		||||
            %strong= flash[:alert]
 | 
			
		||||
        = render 'flashes'
 | 
			
		||||
 | 
			
		||||
        = yield
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -9,13 +9,7 @@
 | 
			
		||||
          = image_tag 'logo.png'
 | 
			
		||||
 | 
			
		||||
    .form-container
 | 
			
		||||
      - if flash[:notice]
 | 
			
		||||
        .flash-message.notice
 | 
			
		||||
          %strong= flash[:notice]
 | 
			
		||||
 | 
			
		||||
      - if flash[:alert]
 | 
			
		||||
        .flash-message.alert
 | 
			
		||||
          %strong= flash[:alert]
 | 
			
		||||
      = render 'flashes'
 | 
			
		||||
 | 
			
		||||
      = yield
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user