Move modal contents into partial

pull/4593/head
Oliver Günther 8 years ago
parent 227e64b27f
commit 2eb8aedd1c
  1. 4
      app/views/homescreen/index.html.erb
  2. 5
      app/views/onboarding/_menu_item.html.erb
  3. 42
      app/views/onboarding/_starting_video_modal.html.erb

@ -35,9 +35,7 @@ See doc/COPYRIGHT.rdoc for more details.
</div>
<foundation-modal-container showing="<%= !!params[:first_time_user] %>">
<div foundation-modal modal-class="onboarding--start-modal" class="foundation-modal--template">
<%= render partial: '/onboarding/starting_video_modal' %>
</div>
<%= render partial: '/onboarding/starting_video_modal' %>
</foundation-modal-container>
<%= render partial: 'announcements/show' %>

@ -32,10 +32,9 @@ See doc/COPYRIGHT.rdoc for more details.
title: l(:label_video),
class: 'foundation-modal--activate-link' %>
</li>
<foundation-modal-container activation-selector='.foundation-modal--activate-link'>
<div foundation-modal modal-class="onboarding--start-modal" class="foundation-modal--template">
<%= render partial: '/onboarding/starting_video_modal' %>
</div>
<%= render partial: '/onboarding/starting_video_modal' %>
</foundation-modal-container>

@ -27,28 +27,30 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<div id="top-menu" class="onboarding--top-menu">
<%= homescreen_user_avatar %>
<h2><%= I18n.t('onboarding.welcome', name: current_user.name) %></h2>
<a class="icon-context icon-close" ng-click="close()"></a>
</div>
<div foundation-modal modal-class="onboarding--start-modal" class="foundation-modal--template">
<div id="top-menu" class="onboarding--top-menu">
<%= homescreen_user_avatar %>
<h2><%= I18n.t('onboarding.welcome', name: current_user.name) %></h2>
<a class="icon-context icon-close" ng-click="close()"></a>
</div>
<div class="onboarding--main">
<h2><%= I18n.t('top_menu.getting_started') %></h2>
<div class="onboarding--video-block">
<div class="onboarding--video-text">
<span><%= I18n.t('onboarding.text_getting_started') %></span>
</div>
<div class="onboarding--video">
<iframe src="<%= OpenProject::Configuration.onboarding_video_url %>" height="282" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div class="onboarding--main">
<h2><%= I18n.t('top_menu.getting_started') %></h2>
<div class="onboarding--video-block">
<div class="onboarding--video-text">
<span><%= I18n.t('onboarding.text_getting_started') %></span>
</div>
<div class="onboarding--video">
<iframe src="<%= OpenProject::Configuration.onboarding_video_url %>" height="282" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<div class="onboarding--footer">
<em><label><%= I18n.t('onboarding.text_show_again') %></label></em>
<button class="button -highlight -large"
ng-click="close()"
title=<%= l(:label_next)%>> <%= l(:label_next)%>
</button>
<div class="onboarding--footer">
<em><label><%= I18n.t('onboarding.text_show_again') %></label></em>
<button class="button -highlight -large"
ng-click="close()"
title=<%= l(:label_next)%>> <%= l(:label_next)%>
</button>
</div>
</div>

Loading…
Cancel
Save