Sha256: 7d74e6e53f7f68dbc9a30881a2bec1cee54f99b46b531c4d56a1cad3ff7bfc01
Contents?: true
Size: 984 Bytes
Versions: 9
Compression:
Stored size: 984 Bytes
Contents
<div id="crd"> <%- if user_signed_in? -%> <ul> <%- if current_user.has_role?('Librarian') -%> <li><%= link_to t('question.all'), questions_path -%></li> <%- end -%> <%- if can? :create, Question -%> <li><%= link_to t('question.my'), user_questions_path(current_user) -%></li> <li><%= link_to t('page.new', :model => t('activerecord.models.question')), new_question_path -%></li> <%- end -%> </ul> <%- end -%> <%- if @crd_results -%> <h4><%= link_to t('question.crd'), "http://crd.ndl.go.jp/" -%></h4> <p><%= t('question.number_of_search_results', :count => @crd_results.total_entries) -%><br /> <ul> <%- @crd_results.each do |result| -%> <li><%= link_to h(truncate(result[:question])), result[:url] -%></li> <%- end -%> </ul> <%= will_paginate(@crd_results, :param_name => :crd_page, :class => 'sidebar_pagination') -%> <%- else -%> <p><%= link_to t('question.you_can_search_crd'), "http://crd.ndl.go.jp/" -%></p> <%- end -%> </div>
Version data entries
9 entries across 9 versions & 1 rubygems