change *default* to *defulat*
This commit is contained in:
		
							parent
							
								
									c36f3152f5
								
							
						
					
					
						commit
						08adb887c5
					
				|  | @ -1,49 +1,49 @@ | ||||||
| 
 | 
 | ||||||
| /* 1 */ | /* 1 */ | ||||||
| .defulat_widget_typeA{ | .default_widget_typeA{ | ||||||
|     font: 12px/100% 'open sans',sans-serif; |     font: 12px/100% 'open sans',sans-serif; | ||||||
|     margin:0 0 20px; |     margin:0 0 20px; | ||||||
|      |      | ||||||
| } | } | ||||||
| .defulat_widget_tb{ | .default_widget_tb{ | ||||||
|   border-collapse:collapse; |   border-collapse:collapse; | ||||||
|   width:100%; |   width:100%; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_tb th{ | .default_widget_tb th{ | ||||||
|     background: none repeat scroll 0 0 #333333; |     background: none repeat scroll 0 0 #333333; | ||||||
|     color: #FFFFFF; |     color: #FFFFFF; | ||||||
|     padding: 10px; |     padding: 10px; | ||||||
|     text-align: left; |     text-align: left; | ||||||
| } | } | ||||||
| .defulat_widget_tb td{ | .default_widget_tb td{ | ||||||
|     border-bottom: 1px solid #AAAAAA; |     border-bottom: 1px solid #AAAAAA; | ||||||
|     padding: 10px; |     padding: 10px; | ||||||
|     vertical-align: top; |     vertical-align: top; | ||||||
|     white-space: normal; |     white-space: normal; | ||||||
|     word-wrap: break-word; |     word-wrap: break-word; | ||||||
| } | } | ||||||
| .defulat_widget_tb .date{ | .default_widget_tb .date{ | ||||||
|   display: block; |   display: block; | ||||||
|   max-width: 80px; |   max-width: 80px; | ||||||
| } | } | ||||||
| .defulat_widget_tb .category{ | .default_widget_tb .category{ | ||||||
|   display: block; |   display: block; | ||||||
|   max-width: 100px; |   max-width: 100px; | ||||||
| } | } | ||||||
| /* 2 */ | /* 2 */ | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style2{ | .default_widget_typeB_style2{ | ||||||
|     font: 12px/100% 'open sans',sans-serif; |     font: 12px/100% 'open sans',sans-serif; | ||||||
|     margin:0 0 20px; |     margin:0 0 20px; | ||||||
|      |      | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style2 ul{ | .default_widget_typeB_style2 ul{ | ||||||
|   margin: 0; |   margin: 0; | ||||||
|   padding: 0; |   padding: 0; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style2 li{ | .default_widget_typeB_style2 li{ | ||||||
|   border-bottom: 1px solid #AAAAAA; |   border-bottom: 1px solid #AAAAAA; | ||||||
|   clear: both; |   clear: both; | ||||||
|   margin: 0 0 10px; |   margin: 0 0 10px; | ||||||
|  | @ -52,7 +52,7 @@ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style2 .app-pic{ | .default_widget_typeB_style2 .app-pic{ | ||||||
|   background: none repeat scroll 0 0 #AAAAAA; |   background: none repeat scroll 0 0 #AAAAAA; | ||||||
|   border-radius: 3px; |   border-radius: 3px; | ||||||
|   float:left; |   float:left; | ||||||
|  | @ -61,28 +61,28 @@ | ||||||
|   overflow: hidden; |   overflow: hidden; | ||||||
|   width: 50px; |   width: 50px; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style2 img{ | .default_widget_typeB_style2 img{ | ||||||
|   height:50px; |   height:50px; | ||||||
|   width:50px; |   width:50px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style2 span{ | .default_widget_typeB_style2 span{ | ||||||
|   display: inline; |   display: inline; | ||||||
|   margin: 0 10px 0 0; |   margin: 0 10px 0 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* 3 */ | /* 3 */ | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style3{ | .default_widget_typeB_style3{ | ||||||
|     font: 12px/100% 'open sans',sans-serif; |     font: 12px/100% 'open sans',sans-serif; | ||||||
|     margin:0 0 20px; |     margin:0 0 20px; | ||||||
|      |      | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style3 ul{ | .default_widget_typeB_style3 ul{ | ||||||
|   margin: 0; |   margin: 0; | ||||||
|   padding: 0; |   padding: 0; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style3 li{ | .default_widget_typeB_style3 li{ | ||||||
|     border-bottom: 1px solid #AAAAAA; |     border-bottom: 1px solid #AAAAAA; | ||||||
|     clear: both; |     clear: both; | ||||||
|     margin: 0 0 10px; |     margin: 0 0 10px; | ||||||
|  | @ -90,7 +90,7 @@ | ||||||
|     padding: 0 0 10px; |     padding: 0 0 10px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style3 .app-pic{ | .default_widget_typeB_style3 .app-pic{ | ||||||
|     background: none repeat scroll 0 0 #AAAAAA; |     background: none repeat scroll 0 0 #AAAAAA; | ||||||
|     border-radius: 3px; |     border-radius: 3px; | ||||||
|     float: left; |     float: left; | ||||||
|  | @ -100,16 +100,16 @@ | ||||||
|     width: 50px; |     width: 50px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style3 span{ | .default_widget_typeB_style3 span{ | ||||||
|   display:block; |   display:block; | ||||||
|   margin:0 0 5px; |   margin:0 0 5px; | ||||||
|   text-align: left; |   text-align: left; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style3 .wrap{ | .default_widget_typeB_style3 .wrap{ | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style3 img{ | .default_widget_typeB_style3 img{ | ||||||
|   height:50px; |   height:50px; | ||||||
|   width:50px; |   width:50px; | ||||||
| } | } | ||||||
|  | @ -118,16 +118,16 @@ | ||||||
| 
 | 
 | ||||||
| /* 4 */ | /* 4 */ | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style4{ | .default_widget_typeB_style4{ | ||||||
|     font: 12px/100% 'open sans',sans-serif; |     font: 12px/100% 'open sans',sans-serif; | ||||||
|     margin:0 0 20px; |     margin:0 0 20px; | ||||||
|      |      | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style4 ul{ | .default_widget_typeB_style4 ul{ | ||||||
|   margin: 0; |   margin: 0; | ||||||
|   padding: 0; |   padding: 0; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style4 li{ | .default_widget_typeB_style4 li{ | ||||||
|     border-bottom: 1px solid #AAAAAA; |     border-bottom: 1px solid #AAAAAA; | ||||||
|     clear: both; |     clear: both; | ||||||
|     margin: 0 0 10px; |     margin: 0 0 10px; | ||||||
|  | @ -135,7 +135,7 @@ | ||||||
|     padding: 0 0 10px; |     padding: 0 0 10px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style4 .app-pic{ | .default_widget_typeB_style4 .app-pic{ | ||||||
|     background: none repeat scroll 0 0 #AAAAAA; |     background: none repeat scroll 0 0 #AAAAAA; | ||||||
|     border-radius: 3px; |     border-radius: 3px; | ||||||
|     float: right; |     float: right; | ||||||
|  | @ -145,16 +145,16 @@ | ||||||
|     width: 50px; |     width: 50px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style4 span{ | .default_widget_typeB_style4 span{ | ||||||
|   display:block; |   display:block; | ||||||
|   margin:0 0 5px; |   margin:0 0 5px; | ||||||
|   text-align: left; |   text-align: left; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeB_style4 .wrap{ | .default_widget_typeB_style4 .wrap{ | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
| } | } | ||||||
| .defulat_widget_typeB_style4 img{ | .default_widget_typeB_style4 img{ | ||||||
|   height:50px; |   height:50px; | ||||||
|   width:50px; |   width:50px; | ||||||
| } | } | ||||||
|  | @ -162,16 +162,16 @@ | ||||||
| 
 | 
 | ||||||
| /* 5 */ | /* 5 */ | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeC{ | .default_widget_typeC{ | ||||||
|     font: 12px/100% 'open sans',sans-serif; |     font: 12px/100% 'open sans',sans-serif; | ||||||
|     margin: 0 0 20px; |     margin: 0 0 20px; | ||||||
|     position: relative; |     position: relative; | ||||||
| } | } | ||||||
| .defulat_widget_typeC ul{ | .default_widget_typeC ul{ | ||||||
|     margin: 0 0 0 70px; |     margin: 0 0 0 70px; | ||||||
|     padding: 0; |     padding: 0; | ||||||
| } | } | ||||||
| .defulat_widget_typeC li{ | .default_widget_typeC li{ | ||||||
|     border-bottom: 1px solid #AAAAAA; |     border-bottom: 1px solid #AAAAAA; | ||||||
|     clear: both; |     clear: both; | ||||||
|     margin: 0 0 10px; |     margin: 0 0 10px; | ||||||
|  | @ -179,7 +179,7 @@ | ||||||
|     padding: 0 0 10px; |     padding: 0 0 10px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeC .app-pic{ | .default_widget_typeC .app-pic{ | ||||||
|     background: none repeat scroll 0 0 #AAAAAA; |     background: none repeat scroll 0 0 #AAAAAA; | ||||||
|     border-radius: 3px 3px 3px 3px; |     border-radius: 3px 3px 3px 3px; | ||||||
|     height: 50px; |     height: 50px; | ||||||
|  | @ -191,16 +191,16 @@ | ||||||
|     width: 50px; |     width: 50px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeC span{ | .default_widget_typeC span{ | ||||||
|   display:block; |   display:block; | ||||||
|   margin:0 0 5px; |   margin:0 0 5px; | ||||||
|   text-align: left; |   text-align: left; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .defulat_widget_typeC .wrap{ | .default_widget_typeC .wrap{ | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
| } | } | ||||||
| .defulat_widget_typeC img{ | .default_widget_typeC img{ | ||||||
|   height:50px; |   height:50px; | ||||||
|   width:50px; |   width:50px; | ||||||
| } | } | ||||||
|  | @ -16,13 +16,13 @@ class DefaultWidgetController< OrbitWidgetController | ||||||
| 
 | 
 | ||||||
|     case params[:type] |     case params[:type] | ||||||
|     when "typeA" |     when "typeA" | ||||||
|       @tag_class = 'defulat_widget_typeA' |       @tag_class = 'default_widget_typeA' | ||||||
|       render "typeA" |       render "typeA" | ||||||
|     when /typeB_/ |     when /typeB_/ | ||||||
|       @tag_class = "defulat_widget_#{params[:type]}" |       @tag_class = "default_widget_#{params[:type]}" | ||||||
|       render "typeB" |       render "typeB" | ||||||
|     when "typeC" |     when "typeC" | ||||||
|       @tag_class = 'defulat_widget_typeC' |       @tag_class = 'default_widget_typeC' | ||||||
|       render "typeC" |       render "typeC" | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| <%= content_tag :div,:class=>@tag_class do%> | <%= content_tag :div,:class=>@tag_class do%> | ||||||
|   <div class="defulat_widget_type_A"> |   <div class="default_widget_type_A"> | ||||||
|     <table class="defulat_widget_tb" border="0" cellpadding="0" cellspacing="0" > |     <table class="default_widget_tb" border="0" cellpadding="0" cellspacing="0" > | ||||||
|     <thead> |     <thead> | ||||||
|       <tr> |       <tr> | ||||||
|         <% @fields.each do |field|%> |         <% @fields.each do |field|%> | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| <%= content_tag :div,:class=>@tag_class do%> | <%= content_tag :div,:class=>@tag_class do%> | ||||||
|   <ul class="defulat_widget_list"> |   <ul class="default_widget_list"> | ||||||
|     <% @data.each do |row_data| %> |     <% @data.each do |row_data| %> | ||||||
|       <%= content_tag(:li) do %> |       <%= content_tag(:li) do %> | ||||||
|         <div class="img app-pic"> |         <div class="img app-pic"> | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
|   <div class="img app-pic"> |   <div class="img app-pic"> | ||||||
|     <%= image_tag @data.first.send(@widget_image_field)%> |     <%= image_tag @data.first.send(@widget_image_field)%> | ||||||
|   </div> |   </div> | ||||||
|   <ul class="defulat_widget_list"> |   <ul class="default_widget_list"> | ||||||
|     <% @data.each do |row_data| %> |     <% @data.each do |row_data| %> | ||||||
|       <%= content_tag(:li) do %> |       <%= content_tag(:li) do %> | ||||||
|         <% @fields.each do |field|%> |         <% @fields.each do |field|%> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue