Modified:
trunk/seb/app/controllers/blogs_controller.rb
trunk/seb/app/views/blogs/_content.rhtml
trunk/seb/app/views/blogs/new.rhtml
trunk/seb/log/ (props changed)
trunk/seb/public/stylesheets/styles.css
trunk/seb/tmp/ (props changed)
Log:
Adding tags to blog entry form, and authority name to blogs listings
Modified: trunk/seb/app/controllers/blogs_controller.rb
==============================================================================
--- trunk/seb/app/controllers/blogs_controller.rb (original)
+++ trunk/seb/app/controllers/blogs_controller.rb Wed Apr 30 12:35:48 2008
@@ -35,6 +35,8 @@
def create
@feed = Feed.new(params[:feed])
if @feed.save
+ @feed.tag_with(params[:taglist])
+ @feed.save
flash[:notice] = 'Feed was successfully created.'
redirect_to :action => 'list', :authority=>@feed.authority_id
else
Modified: trunk/seb/app/views/blogs/_content.rhtml
==============================================================================
--- trunk/seb/app/views/blogs/_content.rhtml (original)
+++ trunk/seb/app/views/blogs/_content.rhtml Wed Apr 30 12:35:48 2008
@@ -2,6 +2,7 @@
<strong><a href="<%= feed.site_url%>"><%=h feed.title %></a></strong>
<a href="<%=feed.link%>"><%= image_tag("rss.png", :style=>"border: 0px;")%></a>
</p>
+<p class="authority_label"><%= feed.authority.name rescue nil%></p>
<p class="blog_tags"><%=
if feed.tags.blank?
""
Modified: trunk/seb/app/views/blogs/new.rhtml
==============================================================================
--- trunk/seb/app/views/blogs/new.rhtml (original)
+++ trunk/seb/app/views/blogs/new.rhtml Wed Apr 30 12:35:48 2008
@@ -9,6 +9,8 @@
<%= form.text_field :site_url %></p>
<p><label for="feed_description">Description</label><br/>
<%= form.text_field :description %></p>
+<p><label for="feed_link">Tags (separate them with spaces)</label><br/>
+<input id="taglist" name="taglist" size="30" type="text" value="" /></p>
<p><label for="feed_link">Feed (leave this blank unless you know it)</label><br/>
<%= form.text_field :link %></p>
<p><label for="feed_authority_id">Authority</label><br/>
Modified: trunk/seb/public/stylesheets/styles.css
==============================================================================
--- trunk/seb/public/stylesheets/styles.css (original)
+++ trunk/seb/public/stylesheets/styles.css Wed Apr 30 12:35:48 2008
@@ -1 +1 @@
-body{text-align:center; font:12px/18px verdana,
sans-serif;padding:0px;margin-top:0px;margin-bottom: 0px;background-color:#CCC;}
#wrap{width: 820px; margin: 0 auto;background: #444
url('/images/wrap-bg.png') repeat-y center top}
#main{width:800px;margin:0 auto;text-align:left;background-color: #FFF;}
#feeds{width:540px;float:left;padding-left: 5px;}
#feeds ol, li{list-style-type:none;}
#feeds h2 { text-align: center;}
#tags{float:right;width:210px;padding-left:16px;background-color: #FFF;}
#header{
background-image:url('/images/seb_header.png') ;background-repeat:no-repeat;height:102px;
border-bottom: 1px solid black;}
#sidebar h3{ background-color:#4AA0E0;background-image: url('/images/h3back.png');width:200px;color:#fff;padding-left:2px}
#sidebar div.section {
padding-bottom: 20px;
}
#header img{;;;}
#footer{clear:both; font-size: smaller; font-style: italic;text-align:
left; padding-left: 10px; padding-right: 10px;}
#navdiv{
padding-top:56px;}
#nav
{
padding: 3px 0;
margin-left: 0;
border-bottom: 1px solid #778;
font: bold 18px "Lucida Grande", Verdana, sans-serif;
}
#nav li
{
list-style: none;
margin: 0;
display: inline;
}
#nav li a
{
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: #4AA0E0;
color:#fff;
text-decoration: none;
}
#nav li a:link { color: #fff; }
#horizontalnav li a:visited { color: #fff; }
#nav a:hover
{
color: #000;
background: #AAE;
border-color: #227;
}
#nav li#active a
{
background: white;
border-bottom: 1px solid white;
color:#00f;
}
div#slider_wrapper {
border: 1px solid gray;
background: #DDECF8;
width: 200px;
padding-bottom: 15px;
}
div#fpg{
width: 200px;
text-align: center;
}
div#feeds ul, ol {
margin:10px 0 10px 20px;
padding:0 0 0 15px;
}
div#feeds ul li, ol li {
margin:0 0 20px 0;
padding:0 0 0 3px;
border-bottom:1px solid #ccc;
}
div#feeds code {
font-size:1.1em;
background-color:#f3f3ff;
color:#000;
}
div#seltags {
text-align: justify;
padding-right: 10px;
}
div#feeds pre {
background-color:#f3f3ff;
color:#000080;
border:1px dotted #000080;
overflow:auto;
padding:3px 5px;
}
#tags a{text-decoration:none;}
#tags a:hover{text-decoration:underline;}
a.s1{font-size:11px;}
a.s2{font-size:13px;}
a.s3{font-size:15px;}
a.s4{font-size:17px;}
a.edit{color:#f00;}
pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}
.fieldWithErrors {
padding: 2px;
background-color: red;
display: table;
}
#errorExplanation {
width: 400px;
border: 2px solid red;
padding: 7px;
padding-bottom: 12px;
margin-bottom: 20px;
background-color: #f0f0f0;
}
#errorExplanation h2 {
text-align: left;
font-weight: bold;
padding: 5px 5px 5px 15px;
font-size: 12px;
margin: -7px;
background-color: #c00;
color: #fff;
}
#errorExplanation p {
color: #333;
margin-bottom: 0;
padding: 5px;
}
#errorExplanation ul li {
font-size: 12px;
list-style: square;
}
div.uploadStatus {
margin: 5px;
}
div.progressBar {
margin: 5px;
}
div.progressBar div.border {
background-color: #fff;
border: 1px solid grey;
width: 100%;
}
div.progressBar div.background {
background-color: #333;
height: 18px;
width: 0%;
}
p.hot a {
color: red
}
p.medium a {
color: orange
}
.blog_details {
font-size:0.8em;
color:#999;
}
#tags p {
padding: 0px 10px;
font-size: smaller;
}
select.authority option {
font-size: 0.9em;
}
/* tag cloud styles */
a.tag1 {font-size: 0.8em;color:#66f;}
a.tag1:visited{color:#96f;}
a.tag2 { font-size: 1em;color:#55f; }
a.tag2:visited{color:#95f;}
a.tag3 {font-size: 1.2em;color:#44f;}
a.tag3:visited{color:#94f;}
a.tag4 {font-size: 1.5em;color:#33f;}
a.tag4:visited{color:#93f;}
a.tag5 {font-size: 1.8em;color:#22f;}
a.tag5:visited{color:#92f;}
a.tag6 {font-size: 2em;color:#11f;}
a.tag6:visited{color:#91f;}
a.tag7 {font-size: 2.5em;color:#00f;}
a.tag7:visited{color:#90f;}
span.selected_tag{
background-color:#FFFF00;
font-weight: bold;
}
/* put the left rounded edge on the track */
#track1-left {
position: absolute;
width: 5px;
height: 9px;
background: transparent url(/images/slider-images-track-left.png)
no-repeat top left;
}
/* put the track and the right rounded edge on the track */
#track1 {
background: transparent url(/images/slider-images-track-right.png)
no-repeat top right;
}
div.stat_image {
text-align: center;
}
div#new_blog_form{
margin-left: 10px;
}
\ No newline at end of file
+body{text-align:center; font:12px/18px verdana,
sans-serif;padding:0px;margin-top:0px;margin-bottom: 0px;background-color:#CCC;}
#wrap{width: 820px; margin: 0 auto;background: #444
url('/images/wrap-bg.png') repeat-y center top}
#main{width:800px;margin:0 auto;text-align:left;background-color: #FFF;}
#feeds{width:540px;float:left;padding-left: 5px;}
#feeds ol, li{list-style-type:none;}
#feeds h2 { text-align: center;}
#tags{float:right;width:210px;padding-left:16px;background-color: #FFF;}
#header{
background-image:url('/images/seb_header.png') ;background-repeat:no-repeat;height:102px;
border-bottom: 1px solid black;}
#sidebar h3{ background-color:#4AA0E0;background-image: url('/images/h3back.png');width:200px;color:#fff;padding-left:2px}
#sidebar div.section {
padding-bottom: 20px;
}
#header img{;;;}
#footer{clear:both; font-size: smaller; font-style: italic;text-align:
left; padding-left: 10px; padding-right: 10px;}
#navdiv{
padding-top:56px;}
#nav
{
padding: 3px 0;
margin-left: 0;
border-bottom: 1px solid #778;
font: bold 18px "Lucida Grande", Verdana, sans-serif;
}
#nav li
{
list-style: none;
margin: 0;
display: inline;
}
#nav li a
{
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: #4AA0E0;
color:#fff;
text-decoration: none;
}
#nav li a:link { color: #fff; }
#horizontalnav li a:visited { color: #fff; }
#nav a:hover
{
color: #000;
background: #AAE;
border-color: #227;
}
#nav li#active a
{
background: white;
border-bottom: 1px solid white;
color:#00f;
}
div#slider_wrapper {
border: 1px solid gray;
background: #DDECF8;
width: 200px;
padding-bottom: 15px;
}
div#fpg{
width: 200px;
text-align: center;
}
div#feeds ul, ol {
margin:10px 0 10px 20px;
padding:0 0 0 15px;
}
div#feeds ul li, ol li {
margin:0 0 20px 0;
padding:0 0 0 3px;
border-bottom:1px solid #ccc;
}
div#feeds code {
font-size:1.1em;
background-color:#f3f3ff;
color:#000;
}
div#seltags {
text-align: justify;
padding-right: 10px;
}
div#feeds pre {
background-color:#f3f3ff;
color:#000080;
border:1px dotted #000080;
overflow:auto;
padding:3px 5px;
}
#tags a{text-decoration:none;}
#tags a:hover{text-decoration:underline;}
a.s1{font-size:11px;}
a.s2{font-size:13px;}
a.s3{font-size:15px;}
a.s4{font-size:17px;}
a.edit{color:#f00;}
pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}
.fieldWithErrors {
padding: 2px;
background-color: red;
display: table;
}
#errorExplanation {
width: 400px;
border: 2px solid red;
padding: 7px;
padding-bottom: 12px;
margin-bottom: 20px;
background-color: #f0f0f0;
}
#errorExplanation h2 {
text-align: left;
font-weight: bold;
padding: 5px 5px 5px 15px;
font-size: 12px;
margin: -7px;
background-color: #c00;
color: #fff;
}
#errorExplanation p {
color: #333;
margin-bottom: 0;
padding: 5px;
}
#errorExplanation ul li {
font-size: 12px;
list-style: square;
}
div.uploadStatus {
margin: 5px;
}
div.progressBar {
margin: 5px;
}
div.progressBar div.border {
background-color: #fff;
border: 1px solid grey;
width: 100%;
}
div.progressBar div.background {
background-color: #333;
height: 18px;
width: 0%;
}
p.hot a {
color: red
}
p.medium a {
color: orange
}
p.authority_label{
font-style: italic;
}
.blog_details {
font-size:0.8em;
color:#999;
}
#tags p {
padding: 0px 10px;
font-size: smaller;
}
select.authority option {
font-size: 0.9em;
}
/* tag cloud styles */
a.tag1 {font-size: 0.8em;color:#66f;}
a.tag1:visited{color:#96f;}
a.tag2 { font-size: 1em;color:#55f; }
a.tag2:visited{color:#95f;}
a.tag3 {font-size: 1.2em;color:#44f;}
a.tag3:visited{color:#94f;}
a.tag4 {font-size: 1.5em;color:#33f;}
a.tag4:visited{color:#93f;}
a.tag5 {font-size: 1.8em;color:#22f;}
a.tag5:visited{color:#92f;}
a.tag6 {font-size: 2em;color:#11f;}
a.tag6:visited{color:#91f;}
a.tag7 {font-size: 2.5em;color:#00f;}
a.tag7:visited{color:#90f;}
span.selected_tag{
background-color:#FFFF00;
font-weight: bold;
}
/* put the left rounded edge on the track */
#track1-left {
position: absolute;
width: 5px;
height: 9px;
background: transparent url(/images/slider-images-track-left.png)
no-repeat top left;
}
/* put the track and the right rounded edge on the track */
#track1 {
background: transparent url(/images/slider-images-track-right.png)
no-repeat top right;
}
div.stat_image {
text-align: center;
}
div#new_blog_form{
margin-left: 10px;
}
\ No newline at end of file