kirgudu_base 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kirgudu_base/dynamicEvents.js +2 -1
  3. data/app/assets/javascripts/kirgudu_base/jquery.container-management.js +241 -0
  4. data/app/assets/javascripts/kirgudu_base/jquery.fancybox copia.js +2020 -0
  5. data/app/assets/javascripts/kirgudu_base/scripts_nrg.js +300 -383
  6. data/app/controllers/kirgudu_base/admin_controller.rb +1 -44
  7. data/app/controllers/kirgudu_base/application_controller.rb +135 -92
  8. data/app/controllers/kirgudu_base/cabinet_controller.rb +35 -35
  9. data/app/controllers/kirgudu_base/security/authentications_controller.rb +452 -0
  10. data/app/controllers/kirgudu_base/security/email_confirmations_controller.rb +46 -0
  11. data/app/helpers/kirgudu_base/application_helper.rb +25 -0
  12. data/app/helpers/kirgudu_base/authentication_form_builder.rb +76 -0
  13. data/app/helpers/kirgudu_base/controllers/{basic_actions_with_parent.rb → OLD_basic_actions.rb} +39 -54
  14. data/app/helpers/kirgudu_base/controllers/basic_actions.rb +967 -161
  15. data/app/helpers/kirgudu_base/controllers/container_items_management_actions.rb +118 -40
  16. data/app/helpers/kirgudu_base/controllers/container_items_sorting_actions.rb +2 -2
  17. data/app/helpers/kirgudu_base/controllers/dynamic_pages.rb +147 -11
  18. data/app/helpers/kirgudu_base/form_builder.rb +3 -1
  19. data/app/helpers/kirgudu_base/gui_helper.rb +10 -5
  20. data/app/helpers/kirgudu_base/models/exports.rb +122 -122
  21. data/app/helpers/kirgudu_base/models/scopes.rb +5 -0
  22. data/app/mailers/authentications_mailer.rb +53 -0
  23. data/app/models/kirgudu_base/base_model.rb +47 -14
  24. data/app/models/kirgudu_base/dynamic_pages/builder.rb +0 -8
  25. data/app/models/kirgudu_base/dynamic_pages/controller_link.rb +4 -1
  26. data/app/models/kirgudu_base/dynamic_pages/controller_link_builder.rb +2 -1
  27. data/app/models/kirgudu_base/dynamic_pages/controller_link_id.rb +6 -6
  28. data/app/models/kirgudu_base/dynamic_pages/controller_link_id_builder.rb +6 -6
  29. data/app/models/kirgudu_base/dynamic_pages/element.rb +4 -5
  30. data/app/models/kirgudu_base/dynamic_pages/entry_builder.rb +2 -2
  31. data/app/models/kirgudu_base/dynamic_pages/event_if_block_builder.rb +1 -1
  32. data/app/models/kirgudu_base/dynamic_pages/form_builder.rb +2 -2
  33. data/app/models/kirgudu_base/dynamic_pages/list.rb +2 -0
  34. data/app/models/kirgudu_base/dynamic_pages/list_builder.rb +7 -3
  35. data/app/models/kirgudu_base/dynamic_pages/management_settings.rb +30 -0
  36. data/app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb +47 -0
  37. data/app/models/kirgudu_base/dynamic_pages/menu.rb +9 -5
  38. data/app/models/kirgudu_base/dynamic_pages/menu_builder.rb +8 -5
  39. data/app/models/kirgudu_base/dynamic_pages/menu_item.rb +22 -6
  40. data/app/models/kirgudu_base/dynamic_pages/menu_items_block_builder.rb +9 -4
  41. data/app/models/kirgudu_base/dynamic_pages/menu_section.rb +38 -0
  42. data/app/models/kirgudu_base/dynamic_pages/menu_section_builder.rb +36 -0
  43. data/app/models/kirgudu_base/dynamic_pages/page.rb +6 -2
  44. data/app/models/kirgudu_base/dynamic_pages/page_builder.rb +18 -0
  45. data/app/models/kirgudu_base/dynamic_pages/relation.rb +23 -0
  46. data/app/models/kirgudu_base/dynamic_pages/relation_builder.rb +35 -0
  47. data/app/models/kirgudu_base/dynamic_pages/sorting_settings.rb +31 -0
  48. data/app/models/kirgudu_base/dynamic_pages/sorting_settings_builder.rb +48 -0
  49. data/app/models/kirgudu_base/security/autheintication.rb +4 -0
  50. data/app/models/kirgudu_base/security/authentication.rb +6 -7
  51. data/app/models/kirgudu_base/security/email_confirmation.rb +7 -0
  52. data/app/models/kirgudu_base/security/restore_password_code.rb +5 -0
  53. data/app/models/kirgudu_base/security/user.rb +2 -0
  54. data/app/models/kirgudu_base/security.rb +6 -7
  55. data/app/models/kirgudu_base/settings/group.rb +22 -0
  56. data/app/models/kirgudu_base/settings/option.rb +44 -0
  57. data/app/models/kirgudu_base/settings/settings_manager.rb +69 -0
  58. data/app/models/kirgudu_base/settings/value.rb +36 -0
  59. data/app/views/admin_templates/default/admin/layouts/application.html.erb +6 -4
  60. data/app/views/admin_templates/default/admin/system/settings/groups/edit.html.erb +9 -9
  61. data/app/views/admin_templates/default/admin/system/settings/groups/new.html.erb +1 -1
  62. data/app/views/admin_templates/default/admin/system/settings/options/edit.html.erb +1 -1
  63. data/app/views/admin_templates/default/admin/system/settings/options/new.html.erb +1 -1
  64. data/app/views/admin_templates/default/admin/system/settings/values/edit.html.erb +1 -1
  65. data/app/views/admin_templates/default/admin/system/settings/values/new.html.erb +1 -1
  66. data/app/views/admin_templates/erp/admin/shared/_top_nav_bar.html.erb +1 -3
  67. data/app/views/admin_templates/erp/admin/shared/entry_edit_form_renderer.html.erb +1 -1
  68. data/app/views/admin_templates/erp/admin/shared/entry_new_form_renderer.html.erb +1 -1
  69. data/app/views/admin_templates/good/admin/layouts/OLD_application.html.erb +14 -14
  70. data/app/views/admin_templates/good/admin/layouts/application.html.erb +11 -113
  71. data/app/views/admin_templates/good/admin/shared/_left_menu.html.erb +74 -63
  72. data/app/views/admin_templates/good/{zapanel/files/New Adobe Photoshop Image 12.psd → admin/shared/_left_menu_item.html.erb} +0 -0
  73. data/app/views/admin_templates/good/admin/shared/_left_menu_section.html.erb +21 -0
  74. data/app/views/admin_templates/good/admin/shared/render_new_OLD.html.erb +90 -0
  75. data/app/views/admin_templates/good/admin/shared/renderer_edit.html.erb +44 -13
  76. data/app/views/admin_templates/good/admin/shared/renderer_edit_OLD.html.erb +106 -0
  77. data/app/views/admin_templates/good/admin/shared/renderer_entries_list.html.erb +39 -18
  78. data/app/views/admin_templates/good/admin/shared/renderer_entries_list_with_parent.html.erb +4 -4
  79. data/app/views/admin_templates/good/admin/shared/renderer_management.html.erb +164 -0
  80. data/app/views/admin_templates/good/admin/shared/renderer_new.html.erb +40 -10
  81. data/app/views/admin_templates/good/admin/shared/renderer_show.html.erb +170 -58
  82. data/app/views/admin_templates/good/admin/shared/renderer_show_OLD.html.erb +159 -0
  83. data/app/views/admin_templates/good/admin/shared/renderer_sorting.html.erb +30 -0
  84. data/app/views/admin_templates/good/kirgudu_base/authentications/login.html.erb +13 -13
  85. data/app/views/admin_templates/good/kirgudu_base/authentications/register.html.erb +1 -1
  86. data/app/views/admin_templates/good/kirgudu_base/old/login_page.html.erb +7 -7
  87. data/app/views/admin_templates/good_flexy/admin/layouts/application.html.erb +17 -16
  88. data/app/views/admin_templates/good_flexy/admin/shared/_left_menu.html.erb +7 -0
  89. data/app/views/admin_templates/good_flexy/admin/shared/renderer_entries_list.html.erb +25 -17
  90. data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_edit.html.erb +34 -13
  91. data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_new.html.erb +31 -10
  92. data/app/views/admin_templates/good_flexy/admin/shared/renderer_show.html.erb +67 -52
  93. data/config/locales/kirgudu_base.ru.yml +92 -0
  94. data/config/routes.rb +16 -16
  95. data/db/migrate/20140413134252_create_kirgudu_base_security_authentications.rb +15 -0
  96. data/db/migrate/20140413152144_create_kirgudu_base_security_email_confirmations.rb +17 -0
  97. data/db/migrate/20140413201121_add_confirmations_kirgudu_base_security_users.rb +14 -0
  98. data/db/migrate/20140415093106_create_kirgudu_base_security_restore_password_codes.rb +20 -0
  99. data/lib/kirgudu_base.rb +2 -2
  100. data/test/fixtures/kirgudu_base/kirgudu_base/security/autheintications.yml +11 -0
  101. data/test/fixtures/kirgudu_base/security/applications.yml +21 -0
  102. data/test/fixtures/kirgudu_base/security/autheintications.yml +11 -0
  103. data/test/fixtures/kirgudu_base/security/authentications.yml +11 -0
  104. data/test/fixtures/kirgudu_base/security/email_confirmations.yml +13 -0
  105. data/test/fixtures/kirgudu_base/security/restore_password_codes.yml +13 -0
  106. data/test/models/kirgudu_base/kirgudu_base/security/autheintication_test.rb +9 -0
  107. data/test/models/kirgudu_base/security/application_test.rb +9 -0
  108. data/test/models/kirgudu_base/security/autheintication_test.rb +9 -0
  109. data/test/models/kirgudu_base/security/authentication_test.rb +9 -0
  110. data/test/models/kirgudu_base/security/email_confirmation_test.rb +9 -0
  111. data/test/models/kirgudu_base/security/restore_password_code_test.rb +9 -0
  112. metadata +102 -79
  113. data/app/assets/javascripts/kirgudu_base/jquery.fancybox.pack.js +0 -45
  114. data/app/controllers/kirgudu_base/authentications_controller.rb +0 -157
  115. data/app/views/admin_templates/good/zapanel/404.html +0 -386
  116. data/app/views/admin_templates/good/zapanel/billing.html +0 -550
  117. data/app/views/admin_templates/good/zapanel/blank-page.html +0 -343
  118. data/app/views/admin_templates/good/zapanel/buttons.html +0 -1018
  119. data/app/views/admin_templates/good/zapanel/calendars.html +0 -451
  120. data/app/views/admin_templates/good/zapanel/cart.html +0 -522
  121. data/app/views/admin_templates/good/zapanel/charts.html +0 -611
  122. data/app/views/admin_templates/good/zapanel/collapse.html +0 -555
  123. data/app/views/admin_templates/good/zapanel/contact.php +0 -102
  124. data/app/views/admin_templates/good/zapanel/dashboard.html +0 -985
  125. data/app/views/admin_templates/good/zapanel/dashboard2.html +0 -1091
  126. data/app/views/admin_templates/good/zapanel/dashboard3.html +0 -1079
  127. data/app/views/admin_templates/good/zapanel/data/movies.json +0 -1
  128. data/app/views/admin_templates/good/zapanel/faq.html +0 -435
  129. data/app/views/admin_templates/good/zapanel/file-manager.html +0 -358
  130. data/app/views/admin_templates/good/zapanel/files/index.php +0 -0
  131. data/app/views/admin_templates/good/zapanel/font-awesome/less/bootstrap.less +0 -84
  132. data/app/views/admin_templates/good/zapanel/font-awesome/less/core.less +0 -129
  133. data/app/views/admin_templates/good/zapanel/font-awesome/less/extras.less +0 -93
  134. data/app/views/admin_templates/good/zapanel/font-awesome/less/font-awesome-ie7.less +0 -1953
  135. data/app/views/admin_templates/good/zapanel/font-awesome/less/font-awesome.less +0 -33
  136. data/app/views/admin_templates/good/zapanel/font-awesome/less/icons.less +0 -381
  137. data/app/views/admin_templates/good/zapanel/font-awesome/less/mixins.less +0 -48
  138. data/app/views/admin_templates/good/zapanel/font-awesome/less/path.less +0 -14
  139. data/app/views/admin_templates/good/zapanel/font-awesome/less/variables.less +0 -735
  140. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_bootstrap.scss +0 -84
  141. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_core.scss +0 -129
  142. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_extras.scss +0 -93
  143. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_icons.scss +0 -381
  144. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_mixins.scss +0 -48
  145. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_path.scss +0 -14
  146. data/app/views/admin_templates/good/zapanel/font-awesome/scss/_variables.scss +0 -734
  147. data/app/views/admin_templates/good/zapanel/font-awesome/scss/font-awesome-ie7.scss +0 -1953
  148. data/app/views/admin_templates/good/zapanel/font-awesome/scss/font-awesome.scss +0 -33
  149. data/app/views/admin_templates/good/zapanel/form.html +0 -790
  150. data/app/views/admin_templates/good/zapanel/gallery.html +0 -392
  151. data/app/views/admin_templates/good/zapanel/grids.html +0 -574
  152. data/app/views/admin_templates/good/zapanel/hosting-dashboard.html +0 -448
  153. data/app/views/admin_templates/good/zapanel/icon.html +0 -722
  154. data/app/views/admin_templates/good/zapanel/inbox.html +0 -375
  155. data/app/views/admin_templates/good/zapanel/index.html +0 -48
  156. data/app/views/admin_templates/good/zapanel/invoice.html +0 -423
  157. data/app/views/admin_templates/good/zapanel/js/proxy/elFinderSupportVer1.js +0 -338
  158. data/app/views/admin_templates/good/zapanel/js/skins/default/lightbox-close.png +0 -0
  159. data/app/views/admin_templates/good/zapanel/js/skins/default/lightbox-next.png +0 -0
  160. data/app/views/admin_templates/good/zapanel/js/skins/default/lightbox-prev.png +0 -0
  161. data/app/views/admin_templates/good/zapanel/notification.html +0 -400
  162. data/app/views/admin_templates/good/zapanel/order-recieved.html +0 -348
  163. data/app/views/admin_templates/good/zapanel/php/MySQLStorage.sql +0 -23
  164. data/app/views/admin_templates/good/zapanel/php/connector.php +0 -44
  165. data/app/views/admin_templates/good/zapanel/php/elFinder.class.php +0 -1103
  166. data/app/views/admin_templates/good/zapanel/php/elFinderConnector.class.php +0 -133
  167. data/app/views/admin_templates/good/zapanel/php/elFinderVolumeDriver.class.php +0 -3370
  168. data/app/views/admin_templates/good/zapanel/php/elFinderVolumeLocalFileSystem.class.php +0 -835
  169. data/app/views/admin_templates/good/zapanel/php/elFinderVolumeMySQL.class.php +0 -896
  170. data/app/views/admin_templates/good/zapanel/php/mime.types +0 -512
  171. data/app/views/admin_templates/good/zapanel/price-table.html +0 -400
  172. data/app/views/admin_templates/good/zapanel/profile.html +0 -387
  173. data/app/views/admin_templates/good/zapanel/progressbar.html +0 -555
  174. data/app/views/admin_templates/good/zapanel/range-slider.html +0 -440
  175. data/app/views/admin_templates/good/zapanel/ribbon-grids.html +0 -491
  176. data/app/views/admin_templates/good/zapanel/sale-purchase-dashboard.html +0 -803
  177. data/app/views/admin_templates/good/zapanel/search.html +0 -370
  178. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-close.png +0 -0
  179. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-loading.gif +0 -0
  180. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-next.png +0 -0
  181. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-pause.png +0 -0
  182. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-play.png +0 -0
  183. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-playvideo.png +0 -0
  184. data/app/views/admin_templates/good/zapanel/skins/default/lightbox-prev.png +0 -0
  185. data/app/views/admin_templates/good/zapanel/slider.html +0 -453
  186. data/app/views/admin_templates/good/zapanel/tables.html +0 -470
  187. data/app/views/admin_templates/good/zapanel/typography.html +0 -746
@@ -1,45 +0,0 @@
1
- /*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
2
- (function(C,z,f,r){var q=f(C),n=f(z),b=f.fancybox=function(){b.open.apply(this,arguments)},H=navigator.userAgent.match(/msie/),w=null,s=z.createTouch!==r,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},p=function(a){return a&&"string"===f.type(a)},F=function(a){return p(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&F(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},x=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.4",defaults:{padding:15,margin:20,width:800,
3
- height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",
4
- 34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
5
- (H?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
6
- openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
7
- isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
8
- c.metadata())):k=c);g=d.href||k.href||(p(c)?c:null);h=d.title!==r?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));p(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":p(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(p(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
9
- k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==r&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
10
- b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
11
- setTimeout(b.next,b.current.playSpeed))},c=function(){d();f("body").unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,f("body").bind({"afterShow.player onUpdate.player":e,"onCancel.player beforeClose.player":c,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(p(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},
12
- prev:function(a){var d=b.current;d&&(p(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==r&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},
13
- e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(w),w=null);b.isOpen&&!w&&(w=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),w=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),
14
- b.trigger("onUpdate")),b.update())},hideLoading:function(){n.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");n.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||
15
- !1,d={x:q.scrollLeft(),y:q.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&C.innerWidth?C.innerWidth:q.width(),d.h=s&&C.innerHeight?C.innerHeight:q.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");n.unbind(".fb");q.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&n.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=
16
- e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==r)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&
17
- "hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,
18
- e){e&&(b.helpers[d]&&f.isFunction(b.helpers[d][a]))&&(e=f.extend(!0,{},b.helpers[d].defaults,e),b.helpers[d][a](e,c))});f.event.trigger(a+".fb")}},isImage:function(a){return p(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(a){return p(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&
19
- (d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=
20
- !0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onReady");
21
- if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=
22
- this.width;b.coming.height=this.height;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,
23
- (new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=
24
- b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();
25
- e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",
26
- !1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");
27
- a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,
28
- v=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,p=l(y[1]+y[3]),r=l(y[0]+y[2]),z,A,t,D,B,G,C,E,w;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");y=l(k.outerWidth(!0)-k.width());z=l(k.outerHeight(!0)-k.height());A=p+y;t=r+z;D=F(c)?(a.w-A)*l(c)/100:c;B=F(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(w=h.content,h.autoHeight&&1===w.data("ready"))try{w[0].contentWindow.document.location&&(g.width(D).height(9999),G=w.contents().find("body"),q&&G.css("overflow-x",
29
- "hidden"),B=G.height())}catch(H){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp");c=l(D);j=l(B);E=D/B;m=l(F(m)?l(m,"w")-A:m);n=l(F(n)?l(n,"w")-A:n);u=l(F(u)?l(u,"h")-t:u);v=l(F(v)?l(v,"h")-t:v);G=n;C=v;h.fitToView&&(n=Math.min(a.w-A,n),v=Math.min(a.h-t,v));A=a.w-p;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/E)),j>v&&(j=v,c=l(j*E)),c<m&&(c=m,j=l(c/E)),j<u&&
30
- (j=u,c=l(j*E))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,v)));if(h.fitToView)if(g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height(),h.aspectRatio)for(;(a>A||p>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(v,j-10)),c=l(j*E),c<m&&(c=m,j=l(c/E)),c>n&&(c=n,j=l(c/E)),g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height();else c=Math.max(m,Math.min(c,c-(a-A))),j=Math.max(u,Math.min(j,j-(p-r)));q&&("auto"===s&&j<B&&c+y+
31
- q<A)&&(c+=q);g.width(c).height(j);e.width(c+y);a=e.width();p=e.height();e=(a>A||p>r)&&c>m&&j>u;c=h.aspectRatio?c<G&&j<C&&c<D&&j<B:(c<G||j<C)&&(c<D||j<B);f.extend(h,{dim:{width:x(a),height:x(p)},origWidth:D,origHeight:B,canShrink:e,canExpand:c,wPadding:y,hPadding:z,wrapSpace:p-k.outerHeight(!0),skinSpace:k.height()-j});!w&&(h.autoHeight&&j>u&&j<v&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",
32
- top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=x(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=x(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&
33
- (d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
34
- a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
35
- (c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:x(c.top-h*a.topRatio),left:x(c.left-j*a.leftRatio),width:x(f+j),height:x(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
36
- f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
37
- {duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=x(l(e[g])-200),c[g]="+=200px"):(e[g]=x(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
38
- b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo("body");
39
- this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){f(a.target).hasClass("fancybox-overlay")&&(b.isActive?b.close():d.close())});this.overlay.css(a.css).show()},
40
- close:function(){f(".fancybox-overlay").remove();q.unbind("resize.overlay");this.overlay=null;!1!==this.margin&&(f("body").css("margin-right",this.margin),this.margin=!1);this.el&&this.el.removeClass("fancybox-lock")},update:function(){var a="100%",b;this.overlay.width(a).height("100%");H?(b=Math.max(z.documentElement.offsetWidth,z.body.offsetWidth),n.width()>b&&(a=n.width())):n.width()>q.width()&&(a=n.width());this.overlay.width(a).height(n.height())},onReady:function(a,b){f(".fancybox-overlay").stop(!0,
41
- !0);this.overlay||(this.margin=n.height()>q.height()||"scroll"===f("body").css("overflow-y")?f("body").css("margin-right"):!1,this.el=z.all&&!z.querySelector?f("html"):f("body"),this.create(a));a.locked&&this.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&(this.el.addClass("fancybox-lock"),!1!==this.margin&&f("body").css("margin-right",l(this.margin)+b.scrollbarWidth));this.open(a)},onUpdate:function(){this.fixed||
42
- this.update()},afterClose:function(a){this.overlay&&!b.isActive&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(p(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),
43
- H&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+
44
- '"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):n.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};n.ready(function(){f.scrollbarWidth===r&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),
45
- b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===r){var a=f.support,d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body"),e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")})})})(window,document,jQuery);
@@ -1,157 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- module KirguduBase
4
- class AuthenticationsController < ::KirguduBase::ApplicationController
5
-
6
- before_action :redirect_if_loggedin, only: :login
7
-
8
- include ApplicationHelper
9
-
10
-
11
- def login
12
- flash[:error] = nil
13
-
14
- render "#{KirguduBase.path_to_views}/login", layout: false
15
- end
16
-
17
- def login_do
18
- @notifications = []
19
- if request.get?
20
- else
21
- @user = ::KirguduBase::Security::User.get_by_email(params[:email])
22
-
23
- if @user && @user.password == ::ChupakabraTools::Security.get_password_hash(params[:password])
24
-
25
- session_expire_timeout = nil
26
- session_expire_timeout = @settings_manager.get('session_expire_timeout') if @settings_manager.get('session_expire_timeout') && params[:remember_me] == false
27
- session_expire_timeout = @settings_manager.get('session_expire_remember_timeout') if @settings_manager.get('session_expire_remember_timeout') && params[:remember_me] == true
28
- session_expire_timeout = 3600 if session_expire_timeout.nil?
29
-
30
-
31
- session[:user_id] = @user.id
32
- session[:user_expire] = DateTime.now + session_expire_timeout
33
- session[:remember_me] = params[:remember_me] == true
34
- redirect_to session[:return_to] || ::KirguduBase.url_for_default_redirection_after_login || "/"
35
- else
36
- @notifications << ::KirguduBase::StickyNotification.new(title: "login error", message: "user not found")
37
- #I18n.t("shared_zone.security.authentications.login.messages.user_not_found")
38
- render "#{KirguduBase.path_to_views}/login", layout: false
39
- end
40
- end
41
- end
42
-
43
- def logout
44
- security_logout(session)
45
-
46
- session[:user_id] = nil
47
- session[:user_expire] = 1.day.ago
48
- session[:remember_me] = false
49
- redirect_to url_for(controller: ::KirguduBase::AuthenticationsController.to_route_path, action: 'login')
50
- end
51
-
52
- def create
53
-
54
- omniauth = request.env["omniauth.auth"]
55
- # Checking if External Authentication Services Allowed
56
- external_authentication_allowed = Option.where(name: 'external_authentication_allowed').first
57
-
58
- if !external_authentication_allowed.nil? && external_authentication_allowed == false
59
- flash[:error] = "External Authentication Services are prohibited. Pleas Login with Your Local Account"
60
- redirect_to url_for(controller: ::KirguduBase::AuthenticationsController.to_route_path, action: 'login_page')
61
- return
62
- end
63
-
64
- authentication = ::KirguduBase::Security::Authentication.find_by_provider_and_uid(omniauth['provider'], omniauth['uid'])
65
- if authentication
66
- flash[:notice] = "Signed in successfully."
67
- session[:user_id] = authentication.user.id
68
- session[:user_provider] = authentication.provider
69
- #sign_in_and_redirect(:user, authentication.user)
70
- redirect_to home_path
71
- return
72
- elsif @current_website
73
- authentication = @current_website.authentications.create!(
74
- provider: omniauth['provider'],
75
- uid: omniauth['uid']
76
- )
77
- session[:user_provider] = authentication.provider
78
- flash[:notice] = "Authentication successful."
79
- redirect_to home_path
80
- return
81
- else
82
- user = ::KirguduBase::Secutiry::User.new(
83
- first_name: omniauth.info.first_name,
84
- last_name: omniauth.info.last_name,
85
- email: omniauth.info.email,
86
- phone: '',
87
- password: ::ChupakabraTools::Security.generate_secret(length: 10)
88
- )
89
-
90
- if user.save
91
- authentication = user.authentications.create!(
92
- provider: omniauth['provider'],
93
- uid: omniauth['uid']
94
- )
95
- session[:user_provider] = authentication.provider
96
- flash[:notice] = "Signed in successfully."
97
- session[:user_id] = user.id
98
- redirect_to home_path
99
- return
100
- else
101
- #session[:omniauth] = omniauth.except('extra')
102
- redirect_to url_for(controller: ::KirguduBase::AuthenticationsController.to_route_path, action: :register)
103
- return
104
- end
105
- end
106
- end
107
-
108
- def register
109
- render "#{KirguduBase.path_to_views}/register", layout: false
110
- end
111
-
112
- def register_do
113
- existent_user = ::KirguduBase::Security::User.where(email: params[:email])
114
- user = ::KirguduBase::Security::User.new
115
- user.first_name = omniauth.info.first_name
116
- user.last_name = omniauth.info.last_name
117
- user.email = omniauth.info.email
118
- user.phone = ''
119
- user.password =
120
- user.created_at = DateTime.now
121
- user.updated_at = DateTime.now
122
- if user.save
123
- authentication = user.authentications.create!(:provider => omniauth['provider'], :uid => omniauth['uid'])
124
- session[:user_provider] = authentication.provider
125
- flash[:notice] = "Signed in successfully."
126
- session[:user_id] = user.id
127
- return
128
- else
129
- #session[:omniauth] = omniauth.except('extra')
130
- redirect_to url_for(controller: ::KirguduBase::AuthenticationsController.to_route_path, action: 'register')
131
- return
132
- end
133
- end
134
-
135
- def destroy
136
- @authentication = wslanding.authentications.find(params[:id])
137
- @authentication.destroy
138
- flash[:notice] = "Successfully destroyed authentication."
139
- redirect_to authentications_url
140
- end
141
-
142
- private
143
- def redirect_if_loggedin
144
- if @current_user
145
- redirect_to home_path
146
- end
147
- end
148
-
149
-
150
- #def user_params
151
- # params
152
- # .require(::KirguduBase::Security::User.for_form_params)
153
- # .permit(:birth_date, :city_id, :city_name, :country_id, :email, :first_name, :last_name, :state_id, :password, :password_confirmation, :phone, :captcha, :captcha_key)
154
- #end
155
-
156
- end
157
- end
@@ -1,386 +0,0 @@
1
- <!DOCTYPE html>
2
- <head>
3
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <title>404 Page</title>
6
-
7
-
8
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
9
- <link href='http://fonts.googleapis.com/css?family=Raleway:100,900,800,700,600,500,400,300,200' rel='stylesheet' type='text/css'><!-- Google Fonts -->
10
-
11
- <!-- Styles -->
12
- <link rel="stylesheet" href="css/bootstrap.css" type="text/css" /><!-- Bootstrap -->
13
- <link href="css/jquery.mCustomScrollbar.css" rel="stylesheet" /><!-- Custom Scroll Bar -->
14
- <link rel="stylesheet" href="font-awesome/css/font-awesome.css" type="text/css" /><!-- Font Awesome -->
15
- <link rel="stylesheet" href="css/style.css" type="text/css" /><!-- Style -->
16
- <link rel="stylesheet" href="css/responsive.css" type="text/css" /><!-- Responsive Style -->
17
-
18
- <!-- Script -->
19
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><!-- Jquery -->
20
- <script src="js/jquery.mCustomScrollbar.concat.min.js"></script><!-- Scroll Bar -->
21
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script><!-- Circle Chart -->
22
- <script type="text/javascript" src="js/bootstrap.js"></script><!-- Bootstrap -->
23
- <script type="text/javascript" src="js/script.js"></script><!-- Script -->
24
- <script src="js/jquery.flot.min.js"></script><!-- Chart -->
25
- <script src="js/side-navigation-tag.js"></script>
26
- <script type="text/javascript" src="js/jquery.sparkline.min.js"></script> <!-- Sparkline -->
27
- <script src="js/jquery-ui.custom.min.js"></script> <!-- Jquery UI Custom -->
28
- <script src="js/jquery.easypiechart.min.js"></script> <!-- Easy Pie Chart -->
29
- <script type="text/javascript" src="http://xoxco.com/projects/code/tagsinput/jquery.tagsinput.js"></script><!-- Sidebar Add Tag -->
30
- <script type="text/javascript" src="js/clock.js"></script>
31
-
32
-
33
-
34
- <script type="text/javascript">
35
- var hours = 4;
36
- var mins = 4;
37
- </script>
38
-
39
- <!--[if IE]>
40
-
41
- <style type="text/css">
42
- #clock { background-image: url("images/clockface.gif");}
43
-
44
- #min{
45
- display:none;
46
- }
47
- #hour{
48
- display:none;
49
- }
50
- #sec{
51
- display:none;
52
- }
53
- </style>
54
- <![endif]-->
55
-
56
- <!-- Scripts -->
57
-
58
-
59
- <!-- Sparklines -->
60
- <script type="text/javascript">
61
- $(function() {
62
- $("#new-orders").sparkline([4,5,6,7,6,5,4,3,2,2,3,4], {
63
- type: 'bar',
64
- height: '40px',
65
- barSpacing:3,
66
- barWidth: 6,
67
- barColor: '#ff4646',
68
- negBarColor: '#D6A838'});
69
- });
70
-
71
- $(function() {
72
- $("#my-balance").sparkline([4,5,6,7,6,5,4,3,2,2,3,4], {
73
- type: 'bar',
74
- height: '40px',
75
- barSpacing:3,
76
- barWidth: 6,
77
- barColor: '#21b95e',
78
- negBarColor: '#27A9E3'});
79
- });
80
- </script>
81
- </head>
82
- <body>
83
- <div class="wrapper dark">
84
- <header>
85
- <div class="logo">
86
- <img src="images/logo.png" alt="" />
87
- </div><!-- Logo -->
88
- <div class="welcome-user">
89
- <img src="images/user.png" alt=""/>
90
- <span>LARA SMITH</span>
91
- <p>Welcome Lara Smith</p>
92
- </div>
93
- <div class="side-navigation">
94
- <ul>
95
- <li><a title=""><i class="icon-laptop"></i>Dashboard<span>5</span></a>
96
- <ul>
97
- <li><a href="dashboard.html" title=""><i class="icon-angle-right"></i>Dashboard 1</a></li>
98
- <li><a href="dashboard2.html" title=""><i class="icon-angle-right"></i>Dashboard 2</a></li>
99
- <li><a href="dashboard3.html" title=""><i class="icon-angle-right"></i>Dashboard 3</a></li>
100
- <li><a href="hosting-dashboard.html" title=""><i class="icon-angle-right"></i>Hosting Dashboard</a></li>
101
- <li><a href="sale-purchase-dashboard.html" title=""><i class="icon-angle-right"></i>For Sale & Purchase</a></li>
102
- </ul>
103
- </li>
104
- <li><a title=""><i class="icon-cogs"></i>Components<span>13</span></a>
105
- <ul>
106
- <li><a href="charts.html" title=""><i class="icon-angle-right"></i>Charts</a></li>
107
- <li><a href="notification.html" title=""><i class="icon-angle-right"></i>Notifications</a></li>
108
- <li><a href="grids.html" title=""><i class="icon-angle-right"></i>Grids</a></li>
109
- <li><a href="ribbon-grids.html" title=""><i class="icon-angle-right"></i>Ribbon Grids</a></li>
110
- <li><a href="buttons.html" title=""><i class="icon-angle-right"></i>Buttons</a></li>
111
- <li><a href="calendars.html" title=""><i class="icon-angle-right"></i>Calendars</a></li>
112
- <li><a href="progressbar.html" title=""><i class="icon-angle-right"></i>Progress Bar</a></li>
113
- <li><a href="file-manager.html" title=""><i class="icon-angle-right"></i>File Manager</a></li>
114
- <li><a href="gallery.html" title=""><i class="icon-angle-right"></i>Gallery</a></li>
115
- <li><a href="slider.html" title=""><i class="icon-angle-right"></i>Slider</a></li>
116
- <li><a href="dashboard.html" title=""><i class="icon-angle-right"></i>Page Tour</a></li>
117
- <li><a href="collapse.html" title=""><i class="icon-angle-right"></i>Collapse</a></li>
118
- <li><a href="range-slider.html" title=""><i class="icon-angle-right"></i>Range Slider</a></li>
119
- </ul>
120
- </li>
121
- <li><a title=""><i class="icon-shopping-cart"></i>Cart Example</a>
122
- <ul>
123
- <li><a href="cart.html" title=""><i class="icon-angle-right"></i>Cart Page</a></li>
124
- <li><a href="billing.html" title=""><i class="icon-angle-right"></i>Billing Page</a></li>
125
- <li><a href="order-recieved.html" title=""><i class="icon-angle-right"></i>Order Recieved</a></li>
126
- </ul>
127
- </li>
128
- <li><a href="form.html" title=""><i class="icon-pencil"></i>Form Elements</a></li>
129
- <li><a href="icon.html" title=""><i class="icon-tint"></i>Icons</a></li>
130
- <li><a href="tables.html" title=""><i class="icon-list-alt"></i>Tables</a></li>
131
- <li><a href="typography.html" title=""><i class="icon-font"></i>Typography</a></li>
132
- <li><a title=""><i class="icon-rocket"></i>Sample Pages<span>4</span></a>
133
- <ul>
134
- <li><a href="invoice.html" title=""><i class="icon-angle-right"></i>Invoice</a></li>
135
- <li><a href="index.html" title=""><i class="icon-angle-right"></i>Log in</a></li>
136
- <li><a href="404.html" title=""><i class="icon-angle-right"></i>404 Error Page</a></li>
137
- <li><a href="blank-page.html" title=""><i class="icon-angle-right"></i>Blank Page</a></li>
138
- </ul>
139
- </li>
140
- <li><a title=""><i class="icon-ellipsis-horizontal"></i>Bonus Free<span>5</span></a>
141
- <ul>
142
- <li><a href="price-table.html" title=""><i class="icon-angle-right"></i>Pricing Table</a></li>
143
- <li><a href="search.html" title=""><i class="icon-angle-right"></i>Search Result</a></li>
144
- <li><a href="inbox.html" title=""><i class="icon-angle-right"></i>Message</a></li>
145
- <li><a href="profile.html" title=""><i class="icon-angle-right"></i>Profile</a></li>
146
- <li><a href="faq.html" title=""><i class="icon-angle-right"></i>FAQ</a></li>
147
- </ul>
148
- </li>
149
- </ul>
150
- </div>
151
- <div class="social-statistics">
152
- <h4 class="headings"><i class="icon-twitter"></i>Social Statistics</h4>
153
- <div class="social-details">
154
- <img src="images/fb.jpg" alt="" />
155
- <span>530,893</span>
156
- <p>Total Facebook Likes</p>
157
- </div>
158
-
159
- <div class="social-details">
160
- <img src="images/twitter.jpg" alt="" />
161
- <span>17,812</span>
162
- <p>Total Twitter Tweets</p>
163
- </div>
164
-
165
- <div class="social-details">
166
- <img src="images/rss.jpg" alt="" />
167
- <span>2,159</span>
168
- <p>Total Rss</p>
169
- </div>
170
- </div>
171
-
172
-
173
- <div class="new-files">
174
- <h4 class="headings"><i class="icon-envelope"></i> Your Emails</h4>
175
- <ul>
176
- <li>
177
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
178
- <a title="" href="#"><i class="icon-envelope blue"></i>From : David Smith</a>
179
- <p>Dear Victoria, Congratulations! You work has been uploaded so please....</p>
180
- </li>
181
- <li>
182
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
183
- <a title="" href="#"><img src="images/email-thumb.png" alt="" />Re : John Doe</a>
184
- <p>Dear Haxzer, What's Your Plan! You work has been uploaded so please....</p>
185
- </li>
186
- <li>
187
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
188
- <a title="" href="#"><i class="icon-envelope green"></i>Re : Parker</a>
189
- <p>Dear Haxzer, What's Your Plan! You work has been uploaded so please....</p>
190
- </li>
191
-
192
- </ul>
193
- </div>
194
- <div class="tag-sec">
195
- <input id="tags_1" type="text" class="tags" value="Here,you,can,add,tags" />
196
- </div>
197
-
198
- <a href="" class="slide-up-btn"><i class="icon-align-justify"></i></a>
199
- </header><!-- Header End -->
200
-
201
-
202
- <section class="main-section">
203
- <div class="responsive-logo">
204
- <img src="images/logo.png" alt="" />
205
- </div>
206
- <div class="responsive-menu">
207
- <ul>
208
- <li><a title=""><i class="icon-laptop"></i>Dashboard<span>5</span></a>
209
- <ul>
210
- <li><a href="dashboard.html" title=""><i class="icon-angle-right"></i>Dashboard 1</a></li>
211
- <li><a href="dashboard2.html" title=""><i class="icon-angle-right"></i>Dashboard 2</a></li>
212
- <li><a href="dashboard3.html" title=""><i class="icon-angle-right"></i>Dashboard 3</a></li>
213
- <li><a href="hosting-dashboard.html" title=""><i class="icon-angle-right"></i>Hosting Dashboard</a></li>
214
- <li><a href="sale-purchase-dashboard.html" title=""><i class="icon-angle-right"></i>For Sale & Purchase</a></li>
215
- </ul>
216
- </li>
217
- <li><a title=""><i class="icon-cogs"></i>Components<span>13</span></a>
218
- <ul>
219
- <li><a href="charts.html" title=""><i class="icon-angle-right"></i>Charts</a></li>
220
- <li><a href="notification.html" title=""><i class="icon-angle-right"></i>Notifications</a></li>
221
- <li><a href="grids.html" title=""><i class="icon-angle-right"></i>Grids</a></li>
222
- <li><a href="ribbon-grids.html" title=""><i class="icon-angle-right"></i>Ribbon Grids</a></li>
223
- <li><a href="buttons.html" title=""><i class="icon-angle-right"></i>Buttons</a></li>
224
- <li><a href="calendars.html" title=""><i class="icon-angle-right"></i>Calendars</a></li>
225
- <li><a href="progressbar.html" title=""><i class="icon-angle-right"></i>Progress Bar</a></li>
226
- <li><a href="file-manager.html" title=""><i class="icon-angle-right"></i>File Manager</a></li>
227
- <li><a href="gallery.html" title=""><i class="icon-angle-right"></i>Gallery</a></li>
228
- <li><a href="slider.html" title=""><i class="icon-angle-right"></i>Slider</a></li>
229
- <li><a href="dashboard.html" title=""><i class="icon-angle-right"></i>Page Tour</a></li>
230
- <li><a href="collapse.html" title=""><i class="icon-angle-right"></i>Collapse</a></li>
231
- <li><a href="range-slider.html" title=""><i class="icon-angle-right"></i>Range Slider</a></li>
232
- </ul>
233
- </li>
234
- <li><a title=""><i class="icon-shopping-cart"></i>Cart Example</a>
235
- <ul>
236
- <li><a href="cart.html" title=""><i class="icon-angle-right"></i>Cart Page</a></li>
237
- <li><a href="billing.html" title=""><i class="icon-angle-right"></i>Billing Page</a></li>
238
- <li><a href="order-recieved.html" title=""><i class="icon-angle-right"></i>Order Recieved</a></li>
239
- </ul>
240
- </li>
241
- <li><a href="form.html" title=""><i class="icon-pencil"></i>Form Elements</a></li>
242
- </ul>
243
- <ul>
244
- <li><a href="icon.html" title=""><i class="icon-tint"></i>Icons</a></li>
245
- <li><a href="tables.html" title=""><i class="icon-list-alt"></i>Tables</a></li>
246
- <li><a href="typography.html" title=""><i class="icon-font"></i>Typography</a></li>
247
- <li><a title=""><i class="icon-rocket"></i>Sample Pages<span>4</span></a>
248
- <ul>
249
- <li><a href="invoice.html" title=""><i class="icon-angle-right"></i>Invoice</a></li>
250
- <li><a href="index.html" title=""><i class="icon-angle-right"></i>Log in</a></li>
251
- <li><a href="404.html" title=""><i class="icon-angle-right"></i>404 Error Page</a></li>
252
- <li><a href="blank-page.html" title=""><i class="icon-angle-right"></i>Blank Page</a></li>
253
- </ul>
254
- </li>
255
- <li><a title=""><i class="icon-ellipsis-horizontal"></i>Bonus Free<span>5</span></a>
256
- <ul>
257
- <li><a href="price-table.html" title=""><i class="icon-angle-right"></i>Pricing Table</a></li>
258
- <li><a href="search.html" title=""><i class="icon-angle-right"></i>Search Result</a></li>
259
- <li><a href="inbox.html" title=""><i class="icon-angle-right"></i>Message</a></li>
260
- <li><a href="profile.html" title=""><i class="icon-angle-right"></i>Profile</a></li>
261
- <li><a href="faq.html" title=""><i class="icon-angle-right"></i>FAQ</a></li>
262
- </ul>
263
- </li>
264
- </ul>
265
- </div>
266
- <div class="container">
267
- <div class="row">
268
- <div class="main-bg">
269
- <div class="top-stats">
270
- <form>
271
- <input type="text" placeholder="Your Search Here" class="search-box"/>
272
- <input type="submit" class="search-submit" value=""/>
273
- </form> <div class="top-bar-chart">
274
- <div class="bar-chart-details">
275
- <p>New User</p>
276
- <h5>17,561</h5>
277
- </div>
278
- <span id="new-orders" class="sparkline">4,5,6,7,6,5,4,3,2,2,4</span>
279
- </div>
280
-
281
- <div class="top-bar-chart">
282
- <div class="bar-chart-details">
283
- <p>My Balance</p>
284
- <h5>$21,561.01</h5>
285
- </div>
286
- <span id="my-balance" class="sparkline">4,5,6,7,6,5,4,3,2,2,4</span>
287
- </div>
288
- <div class="top-stats-icons">
289
- <i class="icon-rocket"></i><i class="icon-user"></i><i class="icon-laptop"></i><i class="icon-tasks"></i>
290
- </div>
291
- </div>
292
-
293
- <div class="breadcrumbs-notify">
294
- <a href="#" title="">Home / </a> <a href="#" class="current-page" title=""> Blank Page </a>
295
- <div class="notification-auto">
296
- <div class="fade-notification">
297
- <h5><i class="icon-warning-sign"></i> Notification :</h5>
298
- </div>
299
- <div class="notification-slideshow">
300
- <h6 class="notify-fade">Server 3 is Over Loader Please Check. <i>3:45pm</i></h6>
301
- <h6 class="notify-fade">Server # 10 is Not Responding<i>1:30 Am</i></h6>
302
- <h6 class="notify-fade">New User Registration Error . <i>Today</i></h6>
303
- <h6 class="notify-fade">Domain Expiration Error <i>Yesterday</i></h6>
304
- <h6 class="notify-fade">Database Over loaded 2% Remaining <i>9:59 pm</i></h6>
305
- <h6 class="notify-fade">Application Erro Delete it Now <i>Last Week</i></h6>
306
- </div>
307
- </div>
308
- </div>
309
-
310
- <div class="heading-buttons-sec">
311
- <h1>404 Error Page</h1>
312
- <p>Good Morning Lara Smith!!</p>
313
- <div class="heading-buttons">
314
- <ul>
315
- <li class="dropdown heading-dropdown">
316
- <a href="#" data-toggle="dropdown" role="button" id="drop1">Dropdown <b class="caret"></b></a>
317
- <ul aria-labelledby="drop1" role="menu" class="dropdown-menu" id="menu1">
318
- <li role="presentation"><a href="#" tabindex="-1" role="menuitem">Action</a></li>
319
- <li role="presentation"><a href="#" tabindex="-1" role="menuitem">Another action</a></li>
320
- <li role="presentation"><a href="#" tabindex="-1" role="menuitem">Something else here</a></li>
321
- <li class="divider" role="presentation"></li>
322
- <li role="presentation"><a href="#" tabindex="-1" role="menuitem">Separated link</a></li>
323
- </ul>
324
- </li>
325
- </ul>
326
- <a href="#" title=""><i class="icon-paper-clip"></i></a><a href="#" title=""><i class="icon-calendar"></i></a><a href="#" title=""><i class="icon-envelope"></i></a><a href="#" title=""><i class="icon-refresh"></i></a>
327
- </div>
328
- </div>
329
-
330
-
331
- <div class="body-sec">
332
- <div class="col-md-12">
333
- <div class="error-page-sec">
334
- <div id="clock-wrap">
335
- <ul id="clock">
336
- <li id="sec" style="transform: rotate(354deg);"></li>
337
- <li id="hour" style="transform: rotate(122deg);"></li>
338
- <li id="min" style="transform: rotate(24deg);"></li>
339
- </ul>
340
- </div>
341
- <div class="error-area">
342
- <h1>404</h1>
343
- <h2><span>OOPS!</span> PAGE WAS NOT FOUND</h2>
344
- <h3>It appears the page you were looking for doesn't exist. Sorry about that.</h3>
345
- <div class="search animated bounceInLeft">
346
- <input type="text" value="Enter Your Search" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">
347
- <a title="" class="gray" href="#">GO</a>
348
- </div><!-- Search Box -->
349
- <div class="social animated bounceInLeft">
350
- <ul>
351
- <li><a href="" class="gray" title=""><i class="icon-facebook"></i></a></li>
352
- <li><a href="" class="gray" title=""><i class="icon-twitter"></i></a></li>
353
- <li><a href="" class="gray" title=""><i class="icon-google-plus"></i></a></li>
354
- <li><a href="" class="gray" title=""><i class="icon-linkedin"></i></a></li>
355
- <li><a href="" class="gray" title=""><i class="icon-rss"></i></a></li>
356
- </ul>
357
- </div><!-- Social Buttons -->
358
- </div>
359
- </div>
360
- </div>
361
-
362
-
363
- </div><!-- Body Sec -->
364
- </div><!-- main-bg-->
365
- </div><!-- Row -->
366
- </div><!-- Container -->
367
-
368
- </section><!-- Main Section -->
369
-
370
- </div><!-- Wrapper -->
371
- <!-- Side Panel -->
372
- <div class="side-panel green">
373
- <a class="panel-button gray"><i class="icon-cogs"></i></a>
374
- <h4 class="gray">Sidebar Theme</h4>
375
- <div class="patterns">
376
- <div class="light-theme-sec">
377
- <img src="images/light-theme-thumb.jpg" alt="" /><a title="" class="light-theme">LIGHT</a>
378
- </div>
379
- <div class="dark-theme-sec">
380
- <img src="images/dark-theme-thumb.jpg" alt="" /><a title="" class="dark-theme">DARK</a>
381
- </div>
382
- <a title="" class="gradient-theme-btn">GRADIENT THEME</a>
383
- </div>
384
- </div>
385
- </body><!-- Body -->
386
- </html><!-- Html -->