Conflicts: db/schema.rbexceptionHandle
commit
4b063a2c69
@ -0,0 +1,14 @@
|
||||
class RelativeMemoToOpenSourceProject < ActiveRecord::Base
|
||||
# attr_accessible :title, :body
|
||||
belongs_to :open_source_project, :foreign_key => "osp_id"
|
||||
belongs_to :topic, :class_name => 'RelativeMemo', :foreign_key => 'relative_memo_id'
|
||||
|
||||
has_many :no_uses, :as => :no_use, :dependent => :delete_all
|
||||
|
||||
validates_presence_of :osp_id, :relative_memo_id
|
||||
|
||||
scope :no_use_for, lambda { |user_id|
|
||||
{:include => :no_uses,
|
||||
:conditions => ["#{NoUse.table_name}.user_id = ?", user_id] }
|
||||
}
|
||||
end
|
@ -0,0 +1,77 @@
|
||||
<!--added by yiang -->
|
||||
<!--display the board-->
|
||||
|
||||
<div class="borad-topic-count" style="margin-top:10px">
|
||||
<span>共有 <%= link_to memos.count %> 个贴子 </span
|
||||
</div>
|
||||
<div style="padding-top: 10px">
|
||||
<% if memos.any? %>
|
||||
<% memos.each do |topic| %>
|
||||
<table class="content-text-list">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) if topic.author%>
|
||||
<%= image_tag('../images/avatars/User/0', :class => "avatar") unless topic.author%> </td>
|
||||
<td>
|
||||
<table width="630px" border="0">
|
||||
<tr>
|
||||
<td valign="top" width="500px" class="<%= topic.sticky ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"><%= link_to h(topic.subject), open_source_project_relative_memo_path(open_source_project, topic) %></td>
|
||||
<td align="right" rowspan="3">
|
||||
<table class="borad-count">
|
||||
<tr>
|
||||
<td align="center" class="borad-count-digit"><%= link_to (topic.replies_count), open_source_project_relative_memo_path(open_source_project, topic) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">回帖</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
|
||||
<td align="right" rowspan="3">
|
||||
<table class="borad-count">
|
||||
<tr>
|
||||
<td align="center" class="borad-count-digit"><%= link_to (topic.viewed_count_crawl+topic.viewed_count_local), open_source_project_relative_memo_path(open_source_project, topic) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">关注</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
|
||||
<td align="right" rowspan="3">
|
||||
<table class="borad-count">
|
||||
<tr>
|
||||
<td align="center" class="borad-count-digit"><%= link_to (topic.viewed_count_crawl+topic.viewed_count_local), open_source_project_relative_memo_path(open_source_project, topic) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">浏览</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" ><span class="font_description"> </span></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td align="left" colspan="2" ><span class="font_lighter"><%#= authoring topic.created_at, topic.author %>
|
||||
<br />
|
||||
</span></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td align="left" colspan="2" >帖子来源:<span class="font_lighter" style="color: #068d9c"><%=link_to 'OSChina', topic.url %>
|
||||
</span></td>
|
||||
<td align="left"><%= no_use_link(topic, User.current) %> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<% end %>
|
||||
<div class="pagination">
|
||||
<%= pagination_links_full @topic_pages, @topic_count %>
|
||||
</div>
|
||||
<% else %>
|
||||
<p class="nodata">
|
||||
<%= l(:label_no_data) %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
@ -0,0 +1,55 @@
|
||||
<!-- added by fq -->
|
||||
<div id="add-memo" class='lz' style="display: none; padding: 20px;">
|
||||
<h3><%=l(:label_memo_new)%></h3>
|
||||
<% if User.current.logged? %>
|
||||
<%= labelled_form_for(@memo, :url => open_source_project_relative_memos_path(@open_source_project), :html => {:multipart => true} ) do |f| %>
|
||||
<% if @memo.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @memo.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="actions" style="max-width:680px">
|
||||
<p><%= f.text_field :subject, :required => true%></p>
|
||||
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
||||
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script>
|
||||
<br/>
|
||||
<p>
|
||||
<%#= l(:label_attachment_plural) %><br />
|
||||
<%#= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
||||
</p>
|
||||
<%= f.submit :value => l(:label_memo_create) %>
|
||||
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-memo").hide(); return false;' %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<!--modified by huang-->
|
||||
<% #= link_to '发布帖子', new_forum_memo_path(@forum), :class => 'icon icon-add' %>
|
||||
<span>
|
||||
<%= link_to l(:label_memo_new_from_forum), new_open_source_project_relative_memo_path(@open_source_project), :class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-memo", "memo_subject"); return false;' if User.current.logged? %>
|
||||
</span>
|
||||
|
||||
<div class="contextual-borad">
|
||||
<%#= link_to(
|
||||
image_tag('edit.png')+l(:label_forum_edit),
|
||||
{:action => 'edit', :id => @forum},
|
||||
:method => 'get',
|
||||
:title => l(:button_edit)
|
||||
) if @forum.editable_by?(User.current) %>
|
||||
<%#= link_to(
|
||||
image_tag('delete.png')+'删除讨论区',
|
||||
{:action => 'destroy', :id => @forum},
|
||||
:method => :delete,
|
||||
:data => {:confirm => l(:text_are_you_sure)},
|
||||
:title => l(:button_delete)
|
||||
) if @forum.destroyable_by?(User.current) %>
|
||||
</div>
|
||||
<%= render :partial => 'open_source_projects/show_memo', :locals => {:memos => @memos, :open_source_project => @open_source_project} %>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
class CreateRelativeMemoToOpenSourceProjects < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :relative_memo_to_open_source_projects do |t|
|
||||
t.integer :osp_id
|
||||
t.integer :relative_memo_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,41 @@
|
||||
.mask{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0px 0 0 0;
|
||||
width: 970px;
|
||||
|
||||
}
|
||||
.header2{
|
||||
float: left;
|
||||
width: 100%;
|
||||
background-color: #f4f4f4
|
||||
}
|
||||
.colleft{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
right: 50%;
|
||||
background-color: #000000
|
||||
}
|
||||
.col1{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
width: 470px;
|
||||
left: 100%;
|
||||
|
||||
}
|
||||
.col2{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
width: 470px;
|
||||
left: 3%;
|
||||
}
|
||||
|
||||
a:hover, a:active {
|
||||
color: #c61a1a;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,74 @@
|
||||
@CHARSET "utf-8";
|
||||
/*body {
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
margin-top:10px;
|
||||
text-align: left;
|
||||
font-family:'微软雅黑',Trebuchet MS,Verdana,Helvetica,Arial,sans-serif;
|
||||
}*/
|
||||
.ichartjs_btn{
|
||||
padding:2px 5px;
|
||||
line-height:25px;
|
||||
color:#0b2946;
|
||||
cursor: pointer;
|
||||
text-align:center;
|
||||
font-size:12px;
|
||||
/*border:1px solid #98adc1;*/
|
||||
-webkit-box-shadow:0px 0px 2px #375073;
|
||||
-moz-box-shadow:0px 0px 2px #375073;
|
||||
box-shadow:0px 0px 2px #375073;
|
||||
/*-moz-border-radius:5px;*/
|
||||
/*-webkit-border-radius:5px;*/
|
||||
/*-khtml-border-radius:5px;*/
|
||||
/*border-radius:0px*/
|
||||
}
|
||||
.ichartjs_author{
|
||||
position: absolute;
|
||||
font-size:12px;
|
||||
right: 20px;
|
||||
top: 0px;
|
||||
}
|
||||
.ichartjs_author a{
|
||||
color:#113659;
|
||||
}
|
||||
|
||||
.ichartjs_info{
|
||||
position:relative;
|
||||
margin:10px;
|
||||
padding:5px;
|
||||
color:#1b4267;
|
||||
}
|
||||
.ichartjs_sm{
|
||||
margin:10px 0px;
|
||||
font-size: 13px;
|
||||
font-weight: 60;
|
||||
}
|
||||
.ichartjs_details{
|
||||
padding:0px;
|
||||
text-indent:2em;
|
||||
font-size: 12px;
|
||||
line-height:20px;
|
||||
}
|
||||
#ichartjs_code{
|
||||
display:none;
|
||||
}
|
||||
#ichartjs_result{
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
bottom: 20px;
|
||||
padding:8px;
|
||||
color:#fefefe;
|
||||
font-size:20px;
|
||||
font-weight:600;
|
||||
background-color:#6d869f;
|
||||
cursor: pointer;
|
||||
text-align:center;
|
||||
/*border:1px solid #6a869d;*/
|
||||
-webkit-box-shadow:0px 0px 2px #375073;
|
||||
-moz-box-shadow:0px 0px 2px #375073;
|
||||
box-shadow:0px 0px 2px #375073;
|
||||
/*-moz-border-radius:10px;*/
|
||||
/*-webkit-border-radius:10px;*/
|
||||
/*-khtml-border-radius:0px;*/
|
||||
/*border-radius:10px*/
|
||||
}
|
@ -0,0 +1,706 @@
|
||||
@charset utf-8;
|
||||
|
||||
|
||||
a {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color:#105DB5;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size:16px;
|
||||
}
|
||||
|
||||
button {
|
||||
border:1px solid #ccc;
|
||||
border-radius:4px;
|
||||
font-size:14px;
|
||||
font-weight:700;
|
||||
margin:5px 0;
|
||||
padding:5px 18px 6px;
|
||||
}
|
||||
|
||||
pre {
|
||||
white-space:0;
|
||||
word-wrap:break-word;
|
||||
}
|
||||
|
||||
/*#main {
|
||||
text-align:left;
|
||||
width:870px;
|
||||
background:#FFF;
|
||||
margin:auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
background:#FFF;
|
||||
width:94%;
|
||||
float:left;
|
||||
padding-top:45px;
|
||||
margin:5px 25px;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
.li_list {
|
||||
clear:both;
|
||||
padding:0 0 0 0px;
|
||||
}
|
||||
|
||||
.li_more {
|
||||
text-align:right;
|
||||
clear:both;
|
||||
margin:5px 0;
|
||||
padding:0 0 1px;
|
||||
}
|
||||
|
||||
.li_time {
|
||||
padding:0 7px 0 0;
|
||||
}
|
||||
|
||||
div.pages {
|
||||
color:#AAA;
|
||||
font-size:13px;
|
||||
text-align:right;
|
||||
margin:10px 0;
|
||||
}
|
||||
|
||||
div.pages a,.thispage,.break {
|
||||
margin:2px;
|
||||
padding:0 4px;
|
||||
}
|
||||
|
||||
div.pages .prev {
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
div.pages .next {
|
||||
margin-left:5px;
|
||||
}
|
||||
|
||||
div.pages .thispage {
|
||||
background:none repeat scroll 0 0 #4D5256;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.clearfix:after {
|
||||
clear:both;
|
||||
content:" ";
|
||||
display:block;
|
||||
height:0;
|
||||
line-height:0;
|
||||
visibility:hidden;
|
||||
}
|
||||
|
||||
.searchform .searchinput {
|
||||
background:none repeat scroll 0 0 #FFF;
|
||||
border:medium none;
|
||||
float:left;
|
||||
font-family:Arial,sans-serif;
|
||||
font-size:13px;
|
||||
width:72px;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.searchform .searchinput:focus {
|
||||
width:196px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.article_title {
|
||||
font-weight:700;
|
||||
border-bottom:1px solid #CCC;
|
||||
margin-bottom:5px;
|
||||
padding:5px 0 10px;
|
||||
}
|
||||
|
||||
.vuln {
|
||||
font-weight:700;
|
||||
border-bottom:medium none!important;
|
||||
padding:3px 0;
|
||||
}
|
||||
|
||||
.article {
|
||||
padding:5px 0 5px 12px;
|
||||
}
|
||||
|
||||
.at_hr {
|
||||
font-weight:700;
|
||||
border-left:7px solid #778087;
|
||||
border-bottom:medium none!important;
|
||||
margin:9px 0;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
.article_exp {
|
||||
padding:0 0 0 20px;
|
||||
}
|
||||
|
||||
.sh_reference {
|
||||
padding:0 0 0 15px;
|
||||
}
|
||||
|
||||
.sh_reference blockquote {
|
||||
padding:5px 18px;
|
||||
}
|
||||
|
||||
.Statement {
|
||||
color:red;
|
||||
}
|
||||
|
||||
.cell {
|
||||
border-bottom:1px dashed #E0E0E0;
|
||||
line-height:18px;
|
||||
list-style:none;
|
||||
padding:9px 0 9px 15px;
|
||||
}
|
||||
|
||||
.fade {
|
||||
color:#999;
|
||||
font-size:14px;
|
||||
font-weight:700;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
.created {
|
||||
color:#999;
|
||||
display:block;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
.ntitle {
|
||||
font-size:22px;
|
||||
font-weight:700;
|
||||
border-bottom:1px dashed #ECECEC;
|
||||
padding:5px 15px;
|
||||
}
|
||||
|
||||
.nutime {
|
||||
color:#999;
|
||||
font-size:12px;
|
||||
padding:5px 15px;
|
||||
}
|
||||
|
||||
.notags {
|
||||
font-size:11px;
|
||||
text-align:right;
|
||||
margin-top:-24px;
|
||||
padding:5px 15px;
|
||||
}
|
||||
|
||||
.notags a {
|
||||
background:none repeat scroll 0 0 #778087;
|
||||
border-radius:10px;
|
||||
color:#FFF;
|
||||
margin-bottom:5px;
|
||||
padding:2px 10px;
|
||||
}
|
||||
|
||||
.notags a:hover {
|
||||
background:none repeat scroll 0 0 #4D5256;
|
||||
color:white;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.node_dir_list {
|
||||
width:570px;
|
||||
float:left;
|
||||
overflow:hidden;
|
||||
border-right:1px dashed #E2E2E2;
|
||||
}
|
||||
|
||||
.node_dir_side {
|
||||
float:right;
|
||||
width:220px;
|
||||
overflow:hidden;
|
||||
margin:0;
|
||||
padding:0 15px 0 10px;
|
||||
}
|
||||
|
||||
.node_list ul {
|
||||
clear:both;
|
||||
padding:0 30px;
|
||||
}
|
||||
|
||||
.node_list li {
|
||||
clear:both;
|
||||
height:38px;
|
||||
list-style-type:square;
|
||||
font-size:15px;
|
||||
padding:3px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.return_te {
|
||||
text-align:right;
|
||||
font-size:12px;
|
||||
vertical-align:bottom;
|
||||
margin-bottom:-15px;
|
||||
padding-right:15px;
|
||||
}
|
||||
|
||||
.editor {
|
||||
width:600px;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
.editor .tools {
|
||||
height:20px;
|
||||
line-height:20px;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.editor .tools a {
|
||||
margin-right:15px;
|
||||
text-decoration:none;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.editor .Container {
|
||||
display:none;
|
||||
position:absolute;
|
||||
float:left;
|
||||
z-index:1000;
|
||||
width:330px;
|
||||
height:95px;
|
||||
border:1px solid #BBB;
|
||||
background:#FFF;
|
||||
overflow:hidden;
|
||||
cursor:default;
|
||||
padding:5px 0 10px 10px;
|
||||
}
|
||||
|
||||
.editor .imgIframe {
|
||||
border:0;
|
||||
width:100%;
|
||||
height:22px;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.editor .Button {
|
||||
text-align:center;
|
||||
margin:0;
|
||||
padding:5px 0;
|
||||
}
|
||||
|
||||
.editor #attinfoDiv {
|
||||
padding-top:5px;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.Button input {
|
||||
margin-right:5px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
.editor input {
|
||||
margin-right:5px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
.na_list {
|
||||
clear:both;
|
||||
padding:15px 0 0 62px;
|
||||
}
|
||||
|
||||
.return_Nadir {
|
||||
font-weight:700;
|
||||
font-size:20px;
|
||||
padding:0 0 15px;
|
||||
}
|
||||
|
||||
.return_Nav {
|
||||
padding-left:10px;
|
||||
align:left;
|
||||
font-weight:700;
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
.return_Nav a {
|
||||
padding:0 .5px;
|
||||
}
|
||||
|
||||
.applists {
|
||||
width:100%;
|
||||
list-style-type:none;
|
||||
float:left;
|
||||
border-top:1px dashed #E0E0E0;
|
||||
padding:40px 0 10px;
|
||||
}
|
||||
|
||||
.applists ul {
|
||||
list-style-type:none;
|
||||
width:98%;
|
||||
list-style-position:outside;
|
||||
float:left;
|
||||
margin:5px 5px 10px 25px;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.applists ul li {
|
||||
width:25%;
|
||||
display:inline;
|
||||
float:left;
|
||||
line-height:24px;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.return_top {
|
||||
text-align:right;
|
||||
font-size:10px;
|
||||
vertical-align:bottom;
|
||||
margin-top:-15px;
|
||||
padding-right:30px;
|
||||
}
|
||||
|
||||
.return_top a {
|
||||
color:#999;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.return_en {
|
||||
vertical-align:top;
|
||||
align:left;
|
||||
font-weight:900;
|
||||
font-size:22px;
|
||||
color:#666;
|
||||
}
|
||||
|
||||
.maintinfo {
|
||||
width:820px;
|
||||
background-color:#E9EEF2;
|
||||
border-radius:5px;
|
||||
float:left;
|
||||
font-size:14px;
|
||||
height:90px;
|
||||
line-height:1.6;
|
||||
position:relative;
|
||||
color:#666;
|
||||
border-style:none none inset;
|
||||
margin:10px 0 15px;
|
||||
}
|
||||
|
||||
.maintinfo strong {
|
||||
float:left;
|
||||
font-size:20px;
|
||||
height:64px;
|
||||
padding-top:28px;
|
||||
text-align:center;
|
||||
width:230px;
|
||||
}
|
||||
|
||||
.maintinfo div {
|
||||
padding:22px 0 18px;
|
||||
}
|
||||
|
||||
.maintinfo b {
|
||||
font-size:13px;
|
||||
font-weight:400;
|
||||
margin-right:15px;
|
||||
}
|
||||
|
||||
.maintinfo em {
|
||||
font-size:12px;
|
||||
margin-right:15px;
|
||||
}
|
||||
|
||||
.maintinfo span {
|
||||
float:right;
|
||||
margin-top:-15px;
|
||||
font-size:10px;
|
||||
padding-right:9px;
|
||||
}
|
||||
|
||||
.maintinfo .blogo {
|
||||
background:url(http://mit00.02753.com/sebug_flat_0da.png) no-repeat scroll 0 0 transparent;
|
||||
display:block;
|
||||
height:19px;
|
||||
text-indent:-5000px;
|
||||
width:52px;
|
||||
float:right;
|
||||
margin:-35px -58px 0 0;
|
||||
}
|
||||
|
||||
.aside {
|
||||
float:right;
|
||||
font-size:11px;
|
||||
width:280px;
|
||||
}
|
||||
|
||||
.aside .group {
|
||||
border-bottom:1px dashed #ECECEC;
|
||||
clear:both;
|
||||
margin-bottom:10px;
|
||||
padding-bottom:10px;
|
||||
}
|
||||
|
||||
.aside .group li {
|
||||
float:left;
|
||||
height:22px;
|
||||
margin-right:1%;
|
||||
overflow:hidden;
|
||||
white-space:nowrap;
|
||||
width:32.299999%;
|
||||
}
|
||||
|
||||
.indexarticle {
|
||||
float:left;
|
||||
padding-right:5px;
|
||||
width:530px;
|
||||
}
|
||||
|
||||
.bug_index_list ul {
|
||||
list-style:none;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
|
||||
.bug_index_list li {
|
||||
padding-left:10px;
|
||||
position:relative;
|
||||
line-height:26px;
|
||||
}
|
||||
|
||||
.indexarticle .topitems {
|
||||
clear:both;
|
||||
margin-bottom:20px;
|
||||
font-size:11px;
|
||||
padding:10px 0 0 10px;
|
||||
}
|
||||
|
||||
.indexarticle .topitems li {
|
||||
float:left;
|
||||
height:22px;
|
||||
margin-right:1%;
|
||||
overflow:hidden;
|
||||
white-space:nowrap;
|
||||
width:23%;
|
||||
}
|
||||
|
||||
.indexseach {
|
||||
text-align:center;
|
||||
margin:auto;
|
||||
padding:110px 0;
|
||||
}
|
||||
|
||||
.lsbb {
|
||||
background:#eee;
|
||||
border:1px solid #999;
|
||||
border-top-color:#ccc;
|
||||
border-left-color:#ccc;
|
||||
height:30px;
|
||||
width:120px;
|
||||
}
|
||||
|
||||
.lsb {
|
||||
font:14px arial;
|
||||
background-position:bottom;
|
||||
border:none;
|
||||
color:#000;
|
||||
cursor:pointer;
|
||||
height:30px;
|
||||
vertical-align:top;
|
||||
background:#f1f1f1;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.lsb:active {
|
||||
background:#ccc;
|
||||
}
|
||||
|
||||
.tsf-p {
|
||||
width:480px;
|
||||
margin:0 auto;
|
||||
}
|
||||
|
||||
.lst-td {
|
||||
border-bottom:1px solid #999;
|
||||
padding-right:16px;
|
||||
}
|
||||
|
||||
.lst {
|
||||
-moz-box-sizing:content-box;
|
||||
background:#fff;
|
||||
border:1px solid #ccc;
|
||||
border-bottom:none;
|
||||
color:#4D5256;
|
||||
font:20px arial;
|
||||
float:left;
|
||||
height:26px;
|
||||
vertical-align:middle;
|
||||
width:100%;
|
||||
padding:2px 10px 2px 6px;
|
||||
}
|
||||
|
||||
.com {
|
||||
color:#800;
|
||||
}
|
||||
|
||||
.lit {
|
||||
color:#066;
|
||||
}
|
||||
|
||||
.pun,.opn,.clo {
|
||||
color:#440;
|
||||
}
|
||||
|
||||
.fun {
|
||||
color:#red;
|
||||
}
|
||||
|
||||
.str,.atv {
|
||||
color:#080;
|
||||
}
|
||||
|
||||
.kwd,.tag {
|
||||
color:#008;
|
||||
}
|
||||
|
||||
.pln {
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.prettyprint {
|
||||
padding:10px 0 10px 20px;
|
||||
}
|
||||
|
||||
ol.linenums {
|
||||
margin:0 0 0 20px;
|
||||
}
|
||||
|
||||
ol.linenums li {
|
||||
color:#959595;
|
||||
line-height:15px;
|
||||
padding:0 5px;
|
||||
}
|
||||
|
||||
.prettyprint-dark {
|
||||
background-color:#1d1f21;
|
||||
border:0;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.prettyprint-dark.linenums li {
|
||||
color:#444;
|
||||
}
|
||||
|
||||
.prettyprint-dark.linenums li:hover {
|
||||
background-color:#282a2e;
|
||||
}
|
||||
|
||||
.prettyprint-dark.kwd,.prettyprint-dark.tag {
|
||||
color:#006;
|
||||
font-weight:700;
|
||||
}
|
||||
|
||||
.prettyprint-dark.str,.prettyprint-dark.atv {
|
||||
color:#060;
|
||||
}
|
||||
|
||||
#slider1 {
|
||||
width:805px;
|
||||
height:285px;
|
||||
position:relative;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#slider1Content {
|
||||
width:805px;
|
||||
position:absolute;
|
||||
top:0;
|
||||
margin-left:0;
|
||||
}
|
||||
|
||||
.slider1Image {
|
||||
float:center;
|
||||
position:relative;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.slider1Image span {
|
||||
position:absolute;
|
||||
font:10px/15px Arial,sans-serif;
|
||||
width:805px;
|
||||
background-color:#E9EEF2;
|
||||
filter:alpha(opacity=70);
|
||||
-moz-opacity:.7;
|
||||
-khtml-opacity:.7;
|
||||
opacity:.7;
|
||||
color:#000;
|
||||
display:none;
|
||||
padding:10px 13px;
|
||||
}
|
||||
|
||||
.top {
|
||||
top:0;
|
||||
left:0;
|
||||
}
|
||||
|
||||
.slider1Image span strong {
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
.chart_p {
|
||||
font-size:11px;
|
||||
line-height:18px;
|
||||
}
|
||||
|
||||
#isad {
|
||||
float:right;
|
||||
background:url(http://mit00.02753.com/www/img/icon_ad.png) no-repeat scroll 0 0 transparent;
|
||||
font-size:11px;
|
||||
padding-left:20px;
|
||||
line-height:11px;
|
||||
}
|
||||
|
||||
*,div.pages .next a,div.pages .prev a {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
a:hover,.created a:hover {
|
||||
background-color:#105DB5;
|
||||
color:#FFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h1,h2 {
|
||||
font-size:18px;
|
||||
}
|
||||
|
||||
.fixed,.clear {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
.li_list li,.na_list li {
|
||||
clear:both;
|
||||
height:18px;
|
||||
list-style-type:square;
|
||||
padding:2px;
|
||||
}
|
||||
|
||||
div.pages .break,.created a {
|
||||
color:#999;
|
||||
}
|
||||
|
||||
.tomore,.at_sebug {
|
||||
padding:5px 0;
|
||||
}
|
||||
|
||||
.typ,.atn,.dec,.var,.prettyprint-dark.typ,.prettyprint-dark .atn,.prettyprint-dark .dec,.prettyprint-dark.var {
|
||||
color:#606;
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
.mask{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0px 0 0 0;
|
||||
width: 690px;
|
||||
|
||||
}
|
||||
.header2{
|
||||
float: left;
|
||||
width: 100%;
|
||||
background-color: #f4f4f4
|
||||
}
|
||||
.colleft{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
right: 50%;
|
||||
background-color: #000000
|
||||
}
|
||||
.col1{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
width: 50%;
|
||||
left: 100%;
|
||||
|
||||
}
|
||||
.col2{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
width: 50%;
|
||||
left: 1%;
|
||||
}
|
||||
|
||||
a:hover, a:active {
|
||||
color: #c61a1a;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class RelativeMemoToOpenSourceProjectTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Reference in new issue