forked from saurabh/orbit4-5
Add personal patent plugin
This commit is contained in:
parent
6655969ecf
commit
9e5d0af3bd
|
@ -66,7 +66,7 @@ class MembersController < ApplicationController
|
||||||
pd = plugin_data.collect do |p|
|
pd = plugin_data.collect do |p|
|
||||||
{
|
{
|
||||||
"data_title" => p.slug_title,
|
"data_title" => p.slug_title,
|
||||||
"link_to_show" => OrbitHelper.url_to_plugin_show(p.to_param,plugin.module_app_name)
|
"link_to_show" => OrbitHelper.url_to_plugin_show(p.to_param,plugin.module_app_name.underscore)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
|
|
@ -77,7 +77,7 @@ module OrbitHelper
|
||||||
|
|
||||||
def self.url_to_plugin_show(slug,module_app)
|
def self.url_to_plugin_show(slug,module_app)
|
||||||
page = Page.find_by(:module => module_app) rescue ""
|
page = Page.find_by(:module => module_app) rescue ""
|
||||||
@url_to_plugin_show = "/#{@site_locale}#{page.url}/#{slug}" rescue "#"
|
@url_to_plugin_show = "#{page.url}/#{slug}" rescue "#"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.set_widget_item_url(widget)
|
def self.set_widget_item_url(widget)
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<table class="table table-hover table-striped patents-index">
|
||||||
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="col-md-3">{{th_publication_date}}</th>
|
||||||
|
<th class="col-md-3">{{th_patent_title}}</th>
|
||||||
|
<th class="col-md-2">{{th_patent_no}}</th>
|
||||||
|
<th class="col-md-2">{{th_patent_country}}</th>
|
||||||
|
<th class="col-md-2">{{th_authors}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr data-level="0" data-list="patents">
|
||||||
|
<td>{{publication_date}}</td>
|
||||||
|
<td><a href="{{link_to_show}}">{{patent_title}}</a></td>
|
||||||
|
<td>{{patent_no}}</td>
|
||||||
|
<td>{{patent_country}}</td>
|
||||||
|
<td>{{authors}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{pagination_goes_here}}
|
|
@ -0,0 +1,26 @@
|
||||||
|
<table class="table table-striped writing-conferences-show">
|
||||||
|
<tbody>
|
||||||
|
<tr><th class="col-md-2">{{th_patent_title}}</th><td>{{patent_title}}</td></tr>
|
||||||
|
<tr><th>{{th_authors}}</th><td>{{authors}}</td></tr>
|
||||||
|
<tr><th>{{th_patent_type}}</th><td>{{patent_type}}</td></tr>
|
||||||
|
<tr><th>{{th_year}}</th><td>{{year}}</td></tr>
|
||||||
|
<tr><th>{{th_patent_no}}</th><td>{{patent_no}}</td></tr>
|
||||||
|
<tr><th>{{th_patent_country}}</th><td>{{patent_country}}</td></tr>
|
||||||
|
<tr><th>{{th_publish_date}}</th><td>{{publish_date}}</td></tr>
|
||||||
|
<tr><th>{{th_keywords}}</th><td>{{keywords}}</td></tr>
|
||||||
|
<tr><th>{{th_url}}</th><td><a href="{{url}}">{{url}}</a></td></tr>
|
||||||
|
<tr><th>{{th_note}}</th><td>{{note}}</td></tr>
|
||||||
|
<tr>
|
||||||
|
<th>{{th_files}}</th>
|
||||||
|
<td>
|
||||||
|
<div data-list="files" data-level="0">
|
||||||
|
<div>
|
||||||
|
<i class="fa fa-fw fa-paperclip"></i>
|
||||||
|
<a href="{{file_url}}">{{file_title}}</a>
|
||||||
|
<span class="label label-primary">{{file_ext}}</span> - {{file_description}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
|
@ -13,6 +13,7 @@ gem 'personal_experience', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-ex
|
||||||
gem 'personal_honor', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-honor.git'
|
gem 'personal_honor', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-honor.git'
|
||||||
gem 'personal_book', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-book.git'
|
gem 'personal_book', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-book.git'
|
||||||
gem 'personal_lab', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-lab.git'
|
gem 'personal_lab', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-lab.git'
|
||||||
|
gem 'personal_patent', git: 'git@gitlab.tp.rulingcom.com:saurabh/personal-patent.git'
|
||||||
|
|
||||||
#widgets
|
#widgets
|
||||||
gem "site_menu_widget", git: 'git@gitlab.tp.rulingcom.com:saurabh/site-menu-widget.git'
|
gem "site_menu_widget", git: 'git@gitlab.tp.rulingcom.com:saurabh/site-menu-widget.git'
|
||||||
|
|
Loading…
Reference in New Issue