Sha256: 7bb24a75cc3577d8663212cea8a5f82e27615d37852b8e5054342fec7a860012

Contents?: true

Size: 1.12 KB

Versions: 14

Compression:

Stored size: 1.12 KB

Contents

% help_search_resut = Kaya::Database::MongoConnector.help_search(query).delete_if{|res| res["title"]=="README"}
</p><h3>Results for <b>"{{query}}"</b></h3></p>
<br>
<p style='display:none;'>strong fix</p>
% if help_search_resut.size.zero?
  No result where found for "{{query}}\"</div></div>
% else
  % help_search_resut.each do |result|
    <div class='panel panel-primary'>
      <div class='panel-heading'>
        <a href='/{{Kaya::Support::Configuration.hostname}}/kaya/help/{{result["title"]}}' style='display: block;color: white !important;'>
          <h3 class='panel-title'>
            <span class='glyphicon glyphicon-file' aria-hidden='true'></span>
            {{result["title"].to_s.gsub('_', ' ').capitalize}}
          </h3>
        </a>
      </div>
      <ul class='list-group'>
      % result["body"].split(/\n/).each do |line|
        % if (line.include? query)
          <li class='list-group-item'>
            <div style='font-weight:normal;'>... {{line.to_s.gsub("#{query}", "<span style='background-color: #FFFF00'>#{query}</span>")}} ...</div>
          </li>
        % end
      % end
      </ul>
    </div>
  % end
% end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kaya-0.0.14 lib/kaya/view/help/search_result.mote
kaya-0.0.13 lib/kaya/view/help/search_result.mote
kaya-0.0.12 lib/kaya/view/help/search_result.mote
kaya-0.0.11 lib/kaya/view/help/search_result.mote
kaya-0.0.10 lib/kaya/view/help/search_result.mote
kaya-0.0.9 lib/kaya/view/help/search_result.mote
kaya-0.0.8 lib/kaya/view/help/search_result.mote
kaya-0.0.7 lib/kaya/view/help/search_result.mote
kaya-0.0.6 lib/kaya/view/help/search_result.mote
kaya-0.0.5 lib/kaya/view/help/search_result.mote
kaya-0.0.4 lib/kaya/view/help/search_result.mote
kaya-0.0.3 lib/kaya/view/help/search_result.mote
kaya-0.0.2 lib/kaya/view/help/search_result.mote
kaya-0.0.1 lib/kaya/view/help/search_result.mote