Skip to content

Commit

Permalink
chore(samples): Add integrity check for cloud sql (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivgautam authored Oct 10, 2023
1 parent e204e9c commit 5b53c09
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions cloud-sql/mysql/activerecord/app/views/votes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js" integrity="sha256-53f7070cc4c81c278c72f7a106fd71434e766cf49b26d6ee8b0e1003d7132b3d"></script>
</head>
<body>
<nav class="red lighten-1">
Expand All @@ -30,7 +30,7 @@ limitations under the License.
<div class="section">
<div class="center">
<h4>
<%= if @tab_count == @space_count
<%= if @tab_count == @space_count
"TABS and SPACES are evenly matched!"
elsif @tab_count > @space_count
"TABS are winning by #{@tab_count - @space_count} vote#{@tab_count - @space_count > 1 ? "s" : ""}!"
Expand Down Expand Up @@ -58,7 +58,7 @@ limitations under the License.
</div>
<h4 class="header center">Recent Votes</h4>
<ul class="container collection center">
<% @recent_votes.each do |vote| %>
<% @recent_votes.each do |vote| %>
<%= render partial: "vote", locals: { vote: vote } %>
<% end %>
</ul>
Expand Down Expand Up @@ -86,4 +86,4 @@ limitations under the License.
});
</script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js" integrity="sha256-53f7070cc4c81c278c72f7a106fd71434e766cf49b26d6ee8b0e1003d7132b3d"></script>
</head>
<body>
<nav class="red lighten-1">
Expand All @@ -30,7 +30,7 @@ limitations under the License.
<div class="section">
<div class="center">
<h4>
<%= if @tab_count == @space_count
<%= if @tab_count == @space_count
"TABS and SPACES are evenly matched!"
elsif @tab_count > @space_count
"TABS are winning by #{@tab_count - @space_count} vote#{@tab_count - @space_count > 1 ? "s" : ""}!"
Expand Down Expand Up @@ -58,7 +58,7 @@ limitations under the License.
</div>
<h4 class="header center">Recent Votes</h4>
<ul class="container collection center">
<% @recent_votes.each do |vote| %>
<% @recent_votes.each do |vote| %>
<%= render partial: "vote", locals: { vote: vote } %>
<% end %>
</ul>
Expand Down Expand Up @@ -86,4 +86,4 @@ limitations under the License.
});
</script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js" integrity="sha256-53f7070cc4c81c278c72f7a106fd71434e766cf49b26d6ee8b0e1003d7132b3d"></script>
</head>
<body>
<nav class="red lighten-1">
Expand All @@ -30,7 +30,7 @@ limitations under the License.
<div class="section">
<div class="center">
<h4>
<%= if @tab_count == @space_count
<%= if @tab_count == @space_count
"TABS and SPACES are evenly matched!"
elsif @tab_count > @space_count
"TABS are winning by #{@tab_count - @space_count} vote#{@tab_count - @space_count > 1 ? "s" : ""}!"
Expand Down Expand Up @@ -58,7 +58,7 @@ limitations under the License.
</div>
<h4 class="header center">Recent Votes</h4>
<ul class="container collection center">
<% @recent_votes.each do |vote| %>
<% @recent_votes.each do |vote| %>
<%= render partial: "vote", locals: { vote: vote } %>
<% end %>
</ul>
Expand Down Expand Up @@ -86,4 +86,4 @@ limitations under the License.
});
</script>
</body>
</html>
</html>

0 comments on commit 5b53c09

Please sign in to comment.