-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Form validation implementation version 1
- Loading branch information
Showing
39 changed files
with
158 additions
and
208 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
<% feed = get_feed(@parameters["url"])%> | ||
|
||
<div class="ui-widget"> | ||
<div class="ui-widget-header"> | ||
<%= @parameters["title"] %> | ||
</div> | ||
<% feed = get_feed(@parameters["uri"])%> | ||
<% if feed == "error" %> | ||
<%= javascript_tag "alert('Could not create Feed item. Please check if the feed url is correct.')"%> | ||
<%= javascript_tag "jQuery('##{itemid}').remove();" %> | ||
<% else %> | ||
<div class="ui-widget"> | ||
<div class="ui-widget-header"> | ||
<%= @parameters["title"] %> | ||
</div> | ||
|
||
<% feed.items.each_with_index do |topic,i| %> | ||
<div id="feed<%=i%>" class="feed" style="display:none;"> | ||
<div id="feed-header<%=i%>" | ||
<%= image_tag "rss_icon.gif", :html => {"align" => "left"}%> | ||
<%= topic.title %><br> | ||
<small> Added on <%= topic.date.strftime('%m/%d/%Y')%> </small> | ||
<HR> | ||
</div> | ||
<% feed.items.each_with_index do |topic,i| %> | ||
<div id="feed<%=i%>" class="feed" style="display:none;"> | ||
<div id="feed-header<%=i%>" | ||
<%= image_tag "rss_icon.gif", :html => {"align" => "left"}%> | ||
<%= topic.title %><br> | ||
<small> Added on <%= topic.date.strftime('%m/%d/%Y')%> </small> | ||
<HR> | ||
</div> | ||
|
||
<div id="feed-description<%=i%>"><%= topic.description.gsub(/<[^>]+>/,"").squeeze(" ").strip %></div> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div id="feed-description<%=i%>"><%= topic.description.gsub(/<[^>]+>/,"").squeeze(" ").strip %></div> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<%= javascript_tag "update_feed(#{feed.items.size})"%> | ||
<%= javascript_tag "update_feed(#{feed.items.size})"%> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,9 @@ def manifest | |
|
||
end | ||
end | ||
|
||
protected | ||
def banner | ||
"Usage: #{$0} board_plugin plugin_name" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.