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.8.0.356.19698103 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.348.160665197 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.328.4a753fc app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.322.c003f11 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.210.ed204b0 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.110.6570b45 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.72.d18d096 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.23.da7f96b app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.16.def5e85 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.15.a24f5ff app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.891.647580e app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.889.d503e42 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.883.f5f063b app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.884.4bd86e6 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.869.9609b39 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.856.8c0fec5 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.809.bdfa8c3 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.785.05d4af9 app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.744.99f67fc app/views/cms/_rating.html.erb
infopark_rails_connector-6.8.0.beta.200.720.44fbabd app/views/cms/_rating.html.erb