Sha256: a98737c7f9e77cd5b7a5d2627bb1c872ce419d7b95df6d6e70a04e22706cd86b

Contents?: true

Size: 1.3 KB

Versions: 45

Compression:

Stored size: 1.3 KB

Contents

<% if RailsConnector::Configuration.enabled?(:ratings) and @obj.allow_rating? %>
  <% if @obj.allow_anonymous_rating? || logged_in? %>
    <div id="starRating" data-default_description="<%= t "rails_connector.views.cms.rating.rate_here" %>">
      <h4><%= t(:"rails_connector.views.cms.rating.title") %></h4>
      <ul class="star-rating">
        <li class="current-rating" style="width:<%= @obj.average_rating_in_percent %>%; margin:0; padding:0;"></li>
        <%= stars_for_rating(@obj) unless rated_by_current_user?(@obj) %>
      </ul>
      <div id="starRating_label">
        <% if rated_by_current_user?(@obj) %>
          <%= t(:"rails_connector.views.cms.rating.thanks") %>
        <% else %>
          <%= t(:"rails_connector.views.cms.rating.rate_here") %>
        <% end %>
      </div>
      <% if admin? %>
        <div class="admin">
          <%= link_to(ratings_url(:action => :reset, :id => @obj.id),
                  :confirm => t("rails_connector.views.cms.rating.are_you_sure")) do %>
            <%= t("rails_connector.views.cms.rating.reset") %>
            <%= image_tag("admin/minus.gif") %>
          <% end %>
        </div>
      <% end %>
    </div>
  <% else %>
    <div class="rating_login_required">
      <%=t :"rails_connector.views.cms.rating.login_required" %>
    </div>
  <% end %>
<% end %>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
infopark_rails_connector-6.9.1.3.22208381 app/views/cms/_rating.html.erb
infopark_rails_connector-6.9.0.3.197272233 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.174.51542603 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.115.227021242 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.73.75172665 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.2.153416031 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.67.110847540 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.3.1.23895778 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.2.36.82613853 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.2.7.128454143 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.1.26.236500544 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.1 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.539.93842523 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.529.114081979 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.518.30999728 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.515.34928522 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.498.46559598 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.480.261594408 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.444.171626367 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.406.131718077 app/views/cms/_rating.html.erb