forked from saurabh/orbit4-5
added frontend folder and revert back .gitignore file
This commit is contained in:
parent
5f22c279d4
commit
24f15db2fa
|
@ -16,4 +16,3 @@
|
|||
/tmp
|
||||
|
||||
/Gemfile.lock
|
||||
/app/views/frontend/*
|
||||
|
|
4
Gemfile
4
Gemfile
|
@ -14,8 +14,8 @@ gem 'uglifier', '>= 1.3.0'
|
|||
|
||||
# Use CoffeeScript for .js.coffee assets and views
|
||||
gem 'coffee-rails', '~> 4.0.0'
|
||||
gem 'announcement', git: 'git@gitlab.tp.rulingcom.com:saurabh/announcement-test.git'
|
||||
# gem 'announcement', path: "/Volumes/MyData/github/orbit4.5/announcement"
|
||||
# gem 'announcement', git: 'git@gitlab.tp.rulingcom.com:saurabh/announcement-test.git'
|
||||
gem 'announcement', path: "/Volumes/MyData/github/orbit4.5/announcement"
|
||||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
||||
# gem 'therubyracer', platforms: :ruby
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ module PagesHelper
|
|||
doc.to_html
|
||||
end
|
||||
|
||||
|
||||
def render_widget_for_frontend(controller_name, widget_method, widget_file)
|
||||
file = File.open(File.join(Rails.root, 'app', 'templates', "#{Template::KEY}", 'modules', "#{controller_name}", "_#{widget_file}.html.erb"))
|
||||
doc = Nokogiri::HTML(file, nil, "UTF-8")
|
||||
|
|
|
@ -0,0 +1,83 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
||||
<link rel="shortcut icon" href="/assets/images/favicon.ico">
|
||||
<title>Orbit Classic</title>
|
||||
<link href="/assets/orbit_classic.css?body=1" media="screen" rel="stylesheet">
|
||||
<link href="/assets/bootstrap.css?body=1" media="screen" rel="stylesheet">
|
||||
<link href="/assets/font-awesome.css?body=1" media="screen" rel="stylesheet">
|
||||
<link href="/assets/icon-ie7.min.css?body=1" media="screen" rel="stylesheet">
|
||||
<link href="/assets/icon.css?body=1" media="screen" rel="stylesheet">
|
||||
<link href="/assets/main.css?body=1" media="screen" rel="stylesheet">
|
||||
<script src="/assets/lib/jquery-1.11.0.min.js?body=1"></script><script src="/assets/plugin/bootstrap.js?body=1"></script><script src="/assets/plugin/html5shiv.js?body=1"></script><script src="/assets/plugin/jquery.lite.image.resize.js?body=1"></script><script src="/assets/plugin/response.min.js?body=1"></script><script src="/assets/orbit_classic.js?body=1"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/">Project name</a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav menu-level-0" data-menu-level="0">
|
||||
<li>
|
||||
<a href="/en/news" data-menu-link="true">
|
||||
News
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="nav navbar-nav dropdown-menu menu-level-1" data-menu-level="1"><li>
|
||||
<a href="/en/news/focusnews" data-menu-link="true">
|
||||
Focus News
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu menu-level-2" data-menu-level="2"><li>
|
||||
<a href="/en/news/focusnews/admission" data-menu-link="true">
|
||||
Admissions
|
||||
</a>
|
||||
</li></ul>
|
||||
</li></ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/en/faqs" data-menu-link="true">
|
||||
Faqs
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.nav-collapse -->
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</div>
|
||||
<div class="container">
|
||||
|
||||
<div class="row row-offcanvas row-offcanvas-right">
|
||||
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<header data-pp="1"></header><main class="row" data-content="true">
|
||||
<article><h1>Chinese params test</h1>
|
||||
<section><div>Chinese params test body</div>
|
||||
</section></article></main><!--/row-->
|
||||
</div>
|
||||
<!--/span-->
|
||||
|
||||
<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation" data-pp="2"></div>
|
||||
<!--/span-->
|
||||
</div>
|
||||
<!--/row-->
|
||||
|
||||
<hr>
|
||||
<footer><p>© Company 2014</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue