change *default* to *defulat*

This commit is contained in:
Rueshyna 2013-01-10 09:40:52 +08:00
parent c36f3152f5
commit 08adb887c5
5 changed files with 41 additions and 41 deletions

View File

@ -1,49 +1,49 @@
/* 1 */
.defulat_widget_typeA{
.default_widget_typeA{
font: 12px/100% 'open sans',sans-serif;
margin:0 0 20px;
}
.defulat_widget_tb{
.default_widget_tb{
border-collapse:collapse;
width:100%;
}
.defulat_widget_tb th{
.default_widget_tb th{
background: none repeat scroll 0 0 #333333;
color: #FFFFFF;
padding: 10px;
text-align: left;
}
.defulat_widget_tb td{
.default_widget_tb td{
border-bottom: 1px solid #AAAAAA;
padding: 10px;
vertical-align: top;
white-space: normal;
word-wrap: break-word;
}
.defulat_widget_tb .date{
.default_widget_tb .date{
display: block;
max-width: 80px;
}
.defulat_widget_tb .category{
.default_widget_tb .category{
display: block;
max-width: 100px;
}
/* 2 */
.defulat_widget_typeB_style2{
.default_widget_typeB_style2{
font: 12px/100% 'open sans',sans-serif;
margin:0 0 20px;
}
.defulat_widget_typeB_style2 ul{
.default_widget_typeB_style2 ul{
margin: 0;
padding: 0;
}
.defulat_widget_typeB_style2 li{
.default_widget_typeB_style2 li{
border-bottom: 1px solid #AAAAAA;
clear: both;
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;
border-radius: 3px;
float:left;
@ -61,28 +61,28 @@
overflow: hidden;
width: 50px;
}
.defulat_widget_typeB_style2 img{
.default_widget_typeB_style2 img{
height:50px;
width:50px;
}
.defulat_widget_typeB_style2 span{
.default_widget_typeB_style2 span{
display: inline;
margin: 0 10px 0 0;
}
/* 3 */
.defulat_widget_typeB_style3{
.default_widget_typeB_style3{
font: 12px/100% 'open sans',sans-serif;
margin:0 0 20px;
}
.defulat_widget_typeB_style3 ul{
.default_widget_typeB_style3 ul{
margin: 0;
padding: 0;
}
.defulat_widget_typeB_style3 li{
.default_widget_typeB_style3 li{
border-bottom: 1px solid #AAAAAA;
clear: both;
margin: 0 0 10px;
@ -90,7 +90,7 @@
padding: 0 0 10px;
}
.defulat_widget_typeB_style3 .app-pic{
.default_widget_typeB_style3 .app-pic{
background: none repeat scroll 0 0 #AAAAAA;
border-radius: 3px;
float: left;
@ -100,16 +100,16 @@
width: 50px;
}
.defulat_widget_typeB_style3 span{
.default_widget_typeB_style3 span{
display:block;
margin:0 0 5px;
text-align: left;
}
.defulat_widget_typeB_style3 .wrap{
.default_widget_typeB_style3 .wrap{
overflow: hidden;
}
.defulat_widget_typeB_style3 img{
.default_widget_typeB_style3 img{
height:50px;
width:50px;
}
@ -118,16 +118,16 @@
/* 4 */
.defulat_widget_typeB_style4{
.default_widget_typeB_style4{
font: 12px/100% 'open sans',sans-serif;
margin:0 0 20px;
}
.defulat_widget_typeB_style4 ul{
.default_widget_typeB_style4 ul{
margin: 0;
padding: 0;
}
.defulat_widget_typeB_style4 li{
.default_widget_typeB_style4 li{
border-bottom: 1px solid #AAAAAA;
clear: both;
margin: 0 0 10px;
@ -135,7 +135,7 @@
padding: 0 0 10px;
}
.defulat_widget_typeB_style4 .app-pic{
.default_widget_typeB_style4 .app-pic{
background: none repeat scroll 0 0 #AAAAAA;
border-radius: 3px;
float: right;
@ -145,16 +145,16 @@
width: 50px;
}
.defulat_widget_typeB_style4 span{
.default_widget_typeB_style4 span{
display:block;
margin:0 0 5px;
text-align: left;
}
.defulat_widget_typeB_style4 .wrap{
.default_widget_typeB_style4 .wrap{
overflow: hidden;
}
.defulat_widget_typeB_style4 img{
.default_widget_typeB_style4 img{
height:50px;
width:50px;
}
@ -162,16 +162,16 @@
/* 5 */
.defulat_widget_typeC{
.default_widget_typeC{
font: 12px/100% 'open sans',sans-serif;
margin: 0 0 20px;
position: relative;
}
.defulat_widget_typeC ul{
.default_widget_typeC ul{
margin: 0 0 0 70px;
padding: 0;
}
.defulat_widget_typeC li{
.default_widget_typeC li{
border-bottom: 1px solid #AAAAAA;
clear: both;
margin: 0 0 10px;
@ -179,7 +179,7 @@
padding: 0 0 10px;
}
.defulat_widget_typeC .app-pic{
.default_widget_typeC .app-pic{
background: none repeat scroll 0 0 #AAAAAA;
border-radius: 3px 3px 3px 3px;
height: 50px;
@ -191,16 +191,16 @@
width: 50px;
}
.defulat_widget_typeC span{
.default_widget_typeC span{
display:block;
margin:0 0 5px;
text-align: left;
}
.defulat_widget_typeC .wrap{
.default_widget_typeC .wrap{
overflow: hidden;
}
.defulat_widget_typeC img{
.default_widget_typeC img{
height:50px;
width:50px;
}
}

View File

@ -16,13 +16,13 @@ class DefaultWidgetController< OrbitWidgetController
case params[:type]
when "typeA"
@tag_class = 'defulat_widget_typeA'
@tag_class = 'default_widget_typeA'
render "typeA"
when /typeB_/
@tag_class = "defulat_widget_#{params[:type]}"
@tag_class = "default_widget_#{params[:type]}"
render "typeB"
when "typeC"
@tag_class = 'defulat_widget_typeC'
@tag_class = 'default_widget_typeC'
render "typeC"
end

View File

@ -1,6 +1,6 @@
<%= content_tag :div,:class=>@tag_class do%>
<div class="defulat_widget_type_A">
<table class="defulat_widget_tb" border="0" cellpadding="0" cellspacing="0" >
<div class="default_widget_type_A">
<table class="default_widget_tb" border="0" cellpadding="0" cellspacing="0" >
<thead>
<tr>
<% @fields.each do |field|%>

View File

@ -1,5 +1,5 @@
<%= content_tag :div,:class=>@tag_class do%>
<ul class="defulat_widget_list">
<ul class="default_widget_list">
<% @data.each do |row_data| %>
<%= content_tag(:li) do %>
<div class="img app-pic">

View File

@ -2,7 +2,7 @@
<div class="img app-pic">
<%= image_tag @data.first.send(@widget_image_field)%>
</div>
<ul class="defulat_widget_list">
<ul class="default_widget_list">
<% @data.each do |row_data| %>
<%= content_tag(:li) do %>
<% @fields.each do |field|%>