Sha256: 8cebc587fc8759695064450887d4fb601ce8d43d9aeedbb221f7a8f370bdc660

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

<% if root["_open"] %>
  <% if indent %><div class="indent"><% end %>
    <div class="question-open">
      <h2><%=title != nil ? title : root["_question"]%></h2>
      <% content.call(root, answer) %>
    </div>
  <% if indent %> </div"><% end %>
<% end %>

<% if !root["_open"] && root["_answered"] %>
  <% if indent %><div class="indent"><% end %>
    <div class="question-closed">
      <div class="title"><%=title != nil ? title : root["_question"]%></div>
      <div class="answer">
        <a href="#" class="button" onclick="$('#change_answer_path').val('<%=path %>').click(); return false"><%=root['_summary']%></a>
      </div>
    </div>
  <% if indent %> </div"><% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doop-0.0.2 lib/generators/doopgovuk/templates/app/views/doop/_question.html.erb
doop-0.0.1 lib/generators/doopgovuk/templates/app/views/doop/_question.html.erb