-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pushed forward snapshot and display tweaks
- Loading branch information
Showing
7 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
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,2 +1,5 @@ | ||
module InstancesHelper | ||
def label_for(aws_id) | ||
Label.find_by_aws_id(aws_id).label rescue "" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
class Label < ActiveRecord::Base | ||
def before_snapshot | ||
eval self.before_snapshot_code unless self.before_snapshot_code.blank? | ||
end | ||
|
||
def after_snapshot | ||
eval self.after_snapshot_code unless self.after_snapshot_code.blank? | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,68 @@ | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"DTD/xhtml1-strict.dtd"> | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | ||
<head> | ||
<title>AWS Dashboard</title> | ||
<%= javascript_include_tag :defaults %> | ||
<%= active_scaffold_includes %> | ||
</head> | ||
<body> | ||
<%#= render :partial => "toolbar" %> | ||
<%= yield %> | ||
</body> | ||
</html> | ||
<title>AWS Dashboard</title> | ||
<%= javascript_include_tag :defaults %> | ||
<%= active_scaffold_includes %> | ||
|
||
<style> | ||
BODY { | ||
font-family: Arial, Helvetica, Geneva, Verdana; | ||
font-size: 13px; | ||
color: #333333; | ||
} | ||
|
||
.body { | ||
font-family: Arial, Helvetica, Geneva, Verdana; | ||
font-size: 13px; | ||
color: #333333; | ||
} | ||
|
||
.title { | ||
font-family: Times New Roman; | ||
font-size: 16px; | ||
color: #333333; | ||
font-weight: bold; | ||
} | ||
|
||
.subtitle { | ||
font-family: Times New Roman; | ||
font-size: 12px; | ||
color: #333333; | ||
font-weight: bold; | ||
} | ||
|
||
A { | ||
text-decoration: none; | ||
} | ||
|
||
A:link { | ||
color: #3366cc; | ||
text-decoration: none; | ||
} | ||
A:visited { | ||
color: #663399; | ||
text-decoration: none; | ||
} | ||
|
||
A:active | ||
{ | ||
color: #cccccc; | ||
text-decoration: none; | ||
} | ||
|
||
.disclaimer { | ||
font-family: Geneva, Verdana, Arial, Helvetica; | ||
font-size: 9px; | ||
color: #999999; | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
<%#= render :partial => "toolbar" %> | ||
<%= yield %> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class AddSnapshotHooksToLabels < ActiveRecord::Migration | ||
def self.up | ||
add_column :labels, :before_snapshot_code, :text | ||
add_column :labels, :after_snapshot_code, :text | ||
end | ||
|
||
def self.down | ||
remove_column :labels, :after_snapshot_code | ||
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
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