Sha256: 0f45986885cdb174809889fe86480c18de634d5a9acf065b83984c56fa4a8889
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
<br /> = render 'pages_cms/admin/shared/tabs', active: 'Contacts' %div.container-fluid.back <br /> %div.row %div.col-md-4 %div.page-height-1 - @contacts.each do |contact| %div{ onclick: "setViewer('name#{contact.id}', 'date#{contact.id}', 'email#{contact.id}','mess#{contact.id}')" } %h4.relative{ style: 'cursor:pointer' } %span{ id: "name#{contact.id}" } = contact.name %span.hard-right = link_to raw('<span class="glyphicon glyphicon-remove"></span>'), admin_contact_path(contact), method: :delete %span{ id: "email#{contact.id}" } = link_to contact.email, "mailto:#{contact.email}" | %span{ id: "date#{contact.id}" } = contact.created_at.strftime("%B %d %Y") %div %small.mess{ id: "mess#{contact.id}" } = raw insert_html_breaks(contact.message) %hr %div.col-md-8 %h5#name %h4#email %div.page-height-2 %h6#date %div#viewer %h1 Click on a contact message to view it. :javascript function setViewer(name, date, email, viewer) { document.getElementById('name').innerHTML = document.getElementById(name).innerHTML document.getElementById('date').innerHTML = document.getElementById(date).innerHTML document.getElementById('email').innerHTML = document.getElementById(email).innerHTML document.getElementById('viewer').innerHTML = document.getElementById(viewer).innerHTML };
Version data entries
3 entries across 3 versions & 1 rubygems