joannangx/visionaria_app

View on GitHub
app/views/admins/exports.html.haml

Summary

Maintainability
Test Coverage
= render 'shared/header'
%br
%br
%br
%div{:id => "downloads_container"}
    %div{:id => "downloads"} Downloads
    %div{:id => "downloads_descrption"} Files download as .csv
    %div{:class => "export_links", :id => "export_users"}
        = link_to image_tag("download.png", :class => "download_button"), users_path(format: :csv)
        %h User Data
    %br
    %div{:class => "export_links", :id => "export_posts"}
        = link_to image_tag("download.png", :class => "download_button"), posts_export_path(format: :csv)
        %h Vision Posts 
    %br
    %div{:class => "export_links", :id => "export_tagged"}
        = link_to image_tag("download.png", :class => "download_button"), tagged_export_path(format: :csv)
        %h Goal Posts 
    %br
    %div{:class => "export_links", :id => "export_notifications"}
        = link_to image_tag("download.png", :class => "download_button"), notifications_export_path(format: :csv)
        %h Notifications