-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To make dev easier, remove the use of jqtouch js for now.
- Loading branch information
Showing
10 changed files
with
116 additions
and
90 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div id="login" class="current"> | ||
<% form_tag({:controller => "/iphone", :action=> "login"}) do %> | ||
<div class="toolbar"> | ||
<h1>Login</h1> | ||
<a href="/iphone" class="back">Back</a> | ||
</div> | ||
<ul class="edgetoedge"> | ||
<li><%= text_field_tag 'username', nil, :placeholder => l(:field_login) %></li> | ||
<li><%= password_field_tag 'password', nil, :placeholder => l(:field_password) %></li> | ||
<% if Setting.openid? %> | ||
<li><%= text_field_tag "openid_url", nil, :placeholder => l(:field_identity_url) %></li> | ||
<% end %> | ||
<% if Setting.autologin? %> | ||
<li><%= check_box_tag 'autologin', 1, false, :title => l(:label_stay_logged_in) %></li> | ||
<% end %> | ||
</ul> | ||
<div><input type="submit" class="submit" value="<%= l(:button_login) %>"></div> | ||
<% end %> | ||
</div> |
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,15 +1,30 @@ | ||
<div id="<%= dom_id(@project) %>"> | ||
<div id="<%= dom_id(@project) %>" class="current"> | ||
<div class="toolbar"> | ||
<h1><%=h @project.name %></h1> | ||
<% if !User.current.logged? %> | ||
<a class="button slideup" id="infoButton" href="#login">Login</a> | ||
<% end %> | ||
<a href="#" class="back">Back</a> | ||
<%= link_to "Back", "/iphone", :class => "back" %> | ||
</div> | ||
<h2>Issues</h2> | ||
<ul class="rounded"> | ||
<% @project.trackers.each do |tracker| %> | ||
<li class="arrow"><%= link_to tracker.name, :controller => "iphone/issues", :action => "index", :project_id => @project, :tracker_id => tracker %> <small class="counter"><%= Issue.count(:conditions => {:tracker_id => tracker.id, :project_id => @project.id}) %></small></li> | ||
<% end %> | ||
</ul> | ||
|
||
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> | ||
<h2><%= l(:label_spent_time) %></h2> | ||
<ul class="rounded"> | ||
<li> | ||
<span class="icon icon-time"><%= l_hours(@total_hours) %></span> | ||
</li> | ||
<li class="arrow"> | ||
<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project.id}) %> | ||
</li> | ||
<li class="arrow"> | ||
<%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project.id}) %> | ||
</li> | ||
</ul> | ||
<% end %> | ||
</div> |
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,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title><%=h html_title %></title> | ||
<meta name="description" content="<%= Redmine::Info.app_name %>"> | ||
<meta name="keywords" content="issue,bug,tracker"> | ||
<%= stylesheet_link_tag 'jqtouch', 'jqt', 'iphone', :plugin => :redmine_iphone_plugin %> | ||
<%= javascript_include_tag 'jquery.1.3.2.min.js', 'jqtouch', :plugin => :redmine_iphone_plugin %> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<title><%=h html_title %></title> | ||
<meta name="description" content="<%= Redmine::Info.app_name %>"> | ||
<meta name="keywords" content="issue,bug,tracker"> | ||
<%= stylesheet_link_tag 'jqtouch', 'jqt', 'iphone', :plugin => :redmine_iphone_plugin %> | ||
<%= javascript_include_tag 'jquery.1.3.2.min.js', :plugin => :redmine_iphone_plugin %> | ||
<script type="text/javascript"> | ||
$(function() { | ||
$("form a.submit").live("click", function() { | ||
$(this).parents("form:first").submit(); | ||
return false; | ||
}); | ||
|
||
<script type="text/javascript"> | ||
var jQT = new $.jQTouch({ | ||
addGlossToIcon: false, | ||
statusBar: 'black' | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="jqt"> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
</html> | ||
$("form input[type='submit']").each(function() { | ||
$("<a href='#' class='submit whiteButton'>" + $(this).val() + "</a>").insertBefore(this); | ||
$(this).remove(); | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="jqt"> | ||
<%= render_flash_messages %> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
</html> |