Skip to content

Commit

Permalink
Fix category helps, and fix favorites help
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Aug 28, 2015
1 parent 3638c84 commit 06f4131
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 30 deletions.
5 changes: 0 additions & 5 deletions app/views/categories/_category-favorit.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<li class="box-item category-favorit">

<!--Image -->
<div class="category">
<%= link_to "<i class='fa fa-star'></i>".html_safe, category, :title => category.title %>
</div>
<!--INFO categories-->
<div class="caption">
<!--Title -->
<h6>
<%= t('excursion.actions.favorite') %>
</h6>
<!--____________________ -->
<div class="info-bottom">
<hr class="soften">
<!--like -->
Expand Down
2 changes: 0 additions & 2 deletions app/views/categories/_category.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<div class="container-img">
<div class="element">
<div class="img-box">
<!--IMG categories-->

<div class="category">
<%= render :partial => 'categories/thumbnail', :locals =>{ :category => category} %>
</div>
Expand Down
6 changes: 1 addition & 5 deletions app/views/categories/favorites.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
<div class="information my_favorites">
<div class="briefing">
<header>

<div class="icontitle">

<!--titulo-->
<i class="fa fa-star"></i> <%= t('categories.favorites.title') %>
<!--ayuda-->
<%= render partial: 'help/help_categories' %>
<%= render partial: 'help/help_category_favorites' %>
</div>
</header>
<div class="description"> <%= t('categories.favorites.description') %> </div>
Expand Down
16 changes: 7 additions & 9 deletions app/views/categories/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,22 @@
<div class="briefing">
<header>
<div class="icontitle">
<!--ayuda-->
<%= render partial: 'help/help_categories' %>
<!--titulo-->
<% if user_signed_in? and @category.owner.user == current_subject %>
<%= render partial: 'help/help_category_own' %>
<% else %>
<%= render partial: 'help/help_category' %>
<% end %>
<h2><%= @category.title %></h2>
<div class="description"><%= @category.description %></div>

<div class="author"> <span class="by"><%= t('by') %></span> <%= link_to @category.author.name, @category.author.subject %></div>
</div>
</header>
<div class="toolbar-profile">
<div class="btn-group js_update_profile_info">
<!--editar-->
<% if can?(:update, @category) %>
<% if can?(:update, @category) %>
<%= link_to(raw("<i class='fa fa-edit '></i>")+ t('excursion.actions.edit'), '#', :id => "edit_icon_link", :class =>"btn btn-default edit_icon") %>
<a class="btn btn-default btn-for-categorize"><i class="fa fa-arrows"></i><%=t('categories.dragandrop.place')%></a>
<% end %>
<!--remove-->
<% end %>
<% if can?(:destroy, @category) %>
<%= link_to(raw("<i class='fa fa-trash'></i>") + t('excursion.actions.delete') , @category, :method => :delete, :remote => false, :confirm => "Are you sure?", :class =>"action btn btn-default" )%>
<% end %>
Expand Down Expand Up @@ -72,7 +71,6 @@
</div>
</section>


<% @items = @category.property_objects
order = @category.categories_order
unless order.nil?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<i class="fa fa-question-circle" id="helpcategoriesid" data-toggle="popover" data-placement='left' aria-hidden="true" data-original-title="<%= t('document.help.categories1_html')%>" href='#' value="" ></i>
<div id="contentcategoriesid" style="display: none">
<div class="popover-body">
<p> <%= t('document.help.categories2_html')%> </p>
<p><%= t('document.help.categories2_html')%> </p>
</div>
<div class="popover-footer popoverfix"><%= t('document.help.overview_html')%></div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions app/views/help/_help_category_favorites.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<span class="helpheader">
<i class="fa fa-question-circle" id="helpfavoritecategoriesid" data-toggle="popover" data-placement='left' aria-hidden="true" data-original-title="<%= t('document.help.favorite1_html')%>" href='#' value="" ></i>
<div id="contentfavoritecategoriesid" style="display: none">
<div class="popover-body">
<p><%= t('document.help.favorite2_html')%> </p>
</div>
<div class="popover-footer popoverfix"><%= t('document.help.overview_html')%></div>
</div>
</span>

<%content_for :javascript do%>
$('#helpfavoritecategoriesid').popover({
html : true,
content: function() {
return $('#contentfavoritecategoriesid').html();
}
});
<%end%>
18 changes: 18 additions & 0 deletions app/views/help/_help_category_own.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<span class="helpheader">
<i class="fa fa-question-circle" id="helpowncategoriesid" data-toggle="popover" data-placement='left' aria-hidden="true" data-original-title="<%= t('document.help.categories1_html')%>" href='#' value="" ></i>
<div id="contentowncategoriesid" style="display: none">
<div class="popover-body">
<p><%= t('document.help.categories2_own_html')%> </p>
</div>
<div class="popover-footer popoverfix"><%= t('document.help.overview_html')%></div>
</div>
</span>

<%content_for :javascript do%>
$('#helpowncategoriesid').popover({
html : true,
content: function() {
return $('#contentowncategoriesid').html();
}
});
<%end%>
File renamed without changes.
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<!--help-->
<% if profile_subject_is_current? %>
<%= render :partial => 'help/help_own_profile' %>
<%= render :partial => 'help/help_profile_own' %>
<% else %>
<%= render :partial => 'help/help_profile' %>
<% end %>
Expand Down
9 changes: 5 additions & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ en:
timeline_date2: "16 December 2013"
timeline_date3: "23 December 2013"
criteria: "Selection criteria"
criteria2: "The eExcursions will be ranked according to the number of favourites voted by the user community on ViSH.The first 10 ranked excursions will then be judged in order to select the winners."
criteria2: "The eExcursions will be ranked according to the number of favorites voted by the user community on ViSH.The first 10 ranked excursions will then be judged in order to select the winners."
prizes: "Check The Prizes"
prizes2: "The winners will receive prizes in the form of Amazon vouchers * For each of the categories there is a chance to win a 1st and 2nd prize"
prizes3: "The overall winners will receive extra prizes"
Expand Down Expand Up @@ -371,7 +371,8 @@ en:
cat1_html: "1. Type a <b>title</b> and <b>description</b>.<br>"
cat2_html: "2. Then, click on <b> save </b> button to create your new category."
categories1_html : "Categories"
categories2_html : "This is the view of the category you've created, under all the features you've added to it are displayed. At any time you can edit or delete the category."
categories2_html : "Categories are repositories or personal folders to which we can add different resources and elements in order to organize or classify them somehow.<br/> The different elements contained in this category are displayed below."
categories2_own_html : "This is the view of the category you've created, below all the items you have added to it are displayed. You can edit or delete the category at any time."
categorize_html: "On this panel you can add the excursion or resource into one or more categories. <br><br>You can select the categories from the list of your already created categories, from the most used by you or create new ones using the text box placed below. <br><br> You can create as many as you wish and all of them will show up in your profile in the categories section."
create_group_title: "Modal to create groups of pupils"
create_group_p1: "Fill in the form with the name for the group and the number of pupils accounts"
Expand All @@ -386,8 +387,8 @@ en:
excursions2_html : "This section shows the excursion you have accessed.</br> You can navigate through the excursion slides by clicking on the arrow buttons, by clicking on the left or right side of the slides or by using the arrow keys on the keyboard.</br> On the right zone recommended excursions are shown, under the excursion you have the information of it, as well as options to share it, download it (in SCORM format), report inappropriate content or spam, clone it, add it to your favorites or add it to a category.</br> You can also comment the excursión from the bottom."
exse_html : "This panel shows the filters applied to the search results."
exse2_html : "Explore / Search"
favourite1_html : "Favourites"
favourite2_html : "This section displays your favorite resources on items that really have made favorites."
favorite1_html : "Favorites"
favorite2_html : "This section shows your favorite resources, in it you can see the items that you have marked as favorite."
home1_html: "This zone show the excursions created by people you are <a href=\"%{profile}\">following.</a>"
info1_html: "Click on one of the following options depending on the type of resource you want to upload:"
info1_doc_html: "<b>Documents</b>: to upload files (images, videos, ...)."
Expand Down
7 changes: 4 additions & 3 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ es:
cat2_html: "2. Después, haga click en el botón <b> guardar </b>para crear su nueva categoría.<br>"
categorize_html: "En este panel puedes añadir la excursión o el recurso a una o más categorías de tu usuario.<br><br>Puedes seleccionarlas entre las ya creadas de tu lista de categorías, de las que más uses o crear nuevas desde la caja de texto inferior.<br><br>Puedes crear tantas como quieras y todas ellas serán visibles desde tu perfil de usuario en la zona de categorías."
categories1_html: "Categorías"
categories2_html: "Esta es la vista de la categoría que has creado, debajo se mostrarán todos los elementos que has añadido a ella. En cualquier momento puedes editar o borrar la categoría."
categories2_html: "Las categorías son repositorios o carpetas personales a las que se pueden añadir diferentes recursos y elementos a fin de organizarlos o clasificarlos de alguna manera.<br/> Los diferentes elementos contenidos en esta categoría se muestran en la zona inferior."
categories2_own_html: "Esta es la vista de la categoría que has creado, debajo se muestran todos los elementos que has añadido a ella. En cualquier momento puedes editar o borrar la categoría."
create_group_title: "Modal para la creación de grupos de alumnos"
create_group_p1: "Rellena el formulario con el nombre que desees darle al grupo y el número de alumnos que contiene"
create_group_p2: "Una vez creado tendrás esa cantidad de cuentas de alumnos y podrás bajarte las credenciales para que accedan"
Expand All @@ -375,8 +376,8 @@ es:
excursions2_html : "En esta sección se muestra la excursión a la que ha accedido.</br> Puedes navegar por las diapositivas de la excursión haciendo clic en las flechas, haciendo clic en la parte izquierda o derecha de las diapositivas o usando las teclas de dirección del teclado.</br> En la zona de la derecha se muestran excursiones recomendadas, bajo la excursión se muestra la información de la misma, así como opciones para compartirla , descargarla (en formato SCORM), notificar contenidos inapropiados o spam, clonarla, añadirla a sus favoritos, o añadirla a una categoría.</br> También puede comentar la excursión desde la parte inferior."
exse_html: "Este panel muestra los filtros aplicados a los resultados de búsqueda."
exse2_html: "Explorar / Buscar"
favourite1_html: "Favoritos"
favourite2_html: "Esta sección muestra tus recursos favoritos, en el veras los elementos que has hecho favoritos."
favorite1_html: "Favoritos"
favorite2_html: "Esta sección muestra tus recursos favoritos, en ella verás los elementos que has marcado como favoritos."
home1_html: "Esta zona muestra las excursiones creadas por los usuarios a los que <a href=\"%{profile}\">sigues.</a>"
info1_html: "Haga click en una de las siguientes opciones en función del tipo de recurso que desee subir:"
info1_doc_html: "<b>Documentos</b>: para subir cualquier tipo de archivo (imágenes, vídeos, ...)."
Expand Down

0 comments on commit 06f4131

Please sign in to comment.