Project

General

Profile

Actions

Feature #1277

closed

Add iPhone specific view

Added by Robert Cerny almost 16 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2008-05-21
Due date:
% Done:

30%

Estimated time:
Resolution:
Duplicate


Files

mobile.css (1.76 KB) mobile.css Semyon Vyskubov, 2010-09-17 18:37

Related issues

Has duplicate Redmine - Feature #3317: API and iPhone appClosed2009-05-07

Actions
Is duplicate of Redmine - Feature #883: Add suport for mobile devices (CSS)Closed2008-03-17

Actions
Actions #1

Updated by Tommy Jensen almost 16 years ago

+1

Actions #2

Updated by Anonymous almost 16 years ago

+1 from me too.

Actions #3

Updated by Simpsom Boy almost 16 years ago

Iphone seems to be too specific.
maybe a more generic mobile version?
or... both

+1

Actions #4

Updated by Anonymous almost 16 years ago

I agree more general would be ideal, but I'm not sure how compatible all the other mobile browsers are with standards. All sites I've encountered currently written specifically for the iPhone will work in a normal desktop browser (well, I've tried Firefox and Apple's Safari with them). Are other browsers as compatible? Everything I've read so far points to most manufacturers bringing out much more capable mobile browsers similar to the iPhone's, so making a site that just uses standards rather than tailored towards a specific mobile browser would be ideal.

Actions #5

Updated by Robert Cerny almost 16 years ago

actually I believe that adding support for mobile devices can be done in two steps. First one is iPhone specific, which is relatively easy due a nature of RoR. The second, based on wap protocol is far more work. There is no standard for mobile devices other than iPhone and I'm not sure if Mobile Opera claims it's mobile version in User Agent...

Actions #6

Updated by Maxim Krušina almost 16 years ago

Hi there, I already created ticket #883, wher I want to add support generaly for all mobile devices. Original idea was to add support for Windows Mobile with IE or Opera, but adding support for other mobile devices like iPhone should be the same task.

We're already started working on mobile version, which should be CSS based, so in the best case code base will be same, only CSS stylesheet will be different. Our company is now finishing one very larg project, so I hope in one or two weeks we can dive into solution.

We already have both HW devices and SW emulators of Windows Mobile 5/6, but please, but we don't have iPhone... Can someone post link to some iPhone emulator, if it estists?

Actions #7

Updated by Anonymous almost 16 years ago

The iPhone SDK (and emulator) is available here: http://developer.apple.com/iphone/ But it only runs on Mac OS X, not Windows, and probably not necessary if you are just developing web-apps for the iPhone.

However, the iPhone browser is basically the same as Apple's desktop browser, Safari, available for Windows here http://www.apple.com/safari/ and documentation on how to develop web-based apps (and test them on Safari) is here http://developer.apple.com/webapps/ Registration is required but it is free.

Actions #8

Updated by Anonymous almost 16 years ago

I know nothing about web development, but having a quick look at the guidelines for iPhone web-apps says this:

Stick with standards when you design webpages for iPhone. Safari on iPhone shares the same Web Kit engine as Safari on the computer desktop. It supports all the latest modern web standards, including:
  • HTML 4.01
  • XHTML 1.0
  • CSS 2.1 and partial CSS3
  • ECMAScript 3 (JavaScript)
  • W3C DOM Level 2
  • AJAX technologies, including XMLHTTPRequest
Actions #9

Updated by Robert Cerny almost 16 years ago

There is another free iPhone simulator here: http://marketcircle.com/iphoney/

Basically, you can stick with Windows, just install Safari for Windows http://www.apple.com/safari and change the window size to 320px.

Rusell: The current Redmine 0.7 works great on iPhone, but the support could be better. For example the Sign-in link is very small while browsing on 320px device, and it's not possible to reach it without zooming. I posted some links above how to implement support for iPhone the right way and really think it's 1 afternoon work. You just need to add iUi framework to the project (it contains the right css, buttons etc.), improve controller to catch iPhone user agent and fiddle templates to support new css and designs.

Actions #10

Updated by Maxim Krušina almost 16 years ago

We really don't play WAP version. It's so much work, WAP is a lot different to classic HTML pages. Anyway, I guess that project managers who really want do business in mobile way already have some better phone/gadget mobile browsing.

Anyway there is some work on GUI, which will be same for both iPhone/WIndows Mobile/Opera ... there is need for some simplification of GUI, etc. so it will fit best on the small screen.

Actions #11

Updated by Maxim Krušina almost 16 years ago

Anyway, we have one Mac so I can chceck it in (almost) native OS.

Actions #12

Updated by Chris Platts almost 16 years ago

Just as a passing comment, there's a Develop menu in Safari on both Mac and Windows -- guide to enable it is here. Although 'desktop' Safari is essentially the same engine as that for the iPhone, the Develop menu will allow you to set its user-agent string to that of the iPhone's edition of the browser. I dare say there's also plenty of other options in the Develop menu which could assist in designing/debugging the CSS.

Actions #13

Updated by Jim Mulholland over 15 years ago

  • Assignee set to Jim Mulholland
  • % Done changed from 0 to 30

The Squeejee team is working on a prototype of a Redmine iPhone interface right now. We are hoping to have something to share next week.

Actions #14

Updated by Stefaan Ellebaut over 15 years ago

Hello Jim,
We are a month further now and I am really hoping you can tell us where we can find a beta version or at least share a status of this feature!
Grtz,
Faan

Actions #15

Updated by Conrad S. about 15 years ago

+1
Would be very useful!

Actions #16

Updated by Derek Montgomery about 15 years ago

Same here!

Actions #17

Updated by Peter Edstrom about 15 years ago

+1

Actions #18

Updated by Jim Mulholland about 15 years ago

Hey guys. I sincerely apologize, but we have made very little progress on the Redmine iPhone app since I assigned this ticket to myself several months ago. I also do not see us getting a chance to work on it in the near future, either.

If any of you would like to take a crack at an iPhone version, please let me know and I can reassign the ticket.

Actions #19

Updated by Henrik Mohr over 14 years ago

Jim Mulholland wrote:

If any of you would like to take a crack at an iPhone version, please let me know and I can reassign the ticket.

I can start working on an iPhone app (not web "skin" but real app) if noone has started yet?

Actions #21

Updated by Michael Aye over 14 years ago

but at least for me, it's not in a good state yet. Can't connect to our redmine server (NSXMLParserErrorDomain error 76).
But at least there is a start.

Actions #22

Updated by Thomas Stägemann over 14 years ago

hey, i'm the developer who released iRedmine.

You can contribute to the further development:
http://github.com/wwk/iRedmine/

Actions #23

Updated by Eric Davis over 14 years ago

Thomas Stägemann,

Thanks, iRedmine looks promising. I'm also getting some XML parse errors when I connect to my server. How would you like bug reports? (I know 0 about iPhone apps)

Actions #24

Updated by Thomas Stägemann over 14 years ago

A new version is coming very soon.

Actions #25

Updated by Maxim Krušina about 14 years ago

Wow, great news! I'm here to test in on our androids... any usable version somewhere? ;)

Actions #26

Updated by Oleg Lozinskij almost 14 years ago

great! just great!

do you plan a version for BlackBerry?

Actions #27

Updated by Greg Thornton almost 14 years ago

Now that we know the difference between iPhone apps, other mobile apps, and now "iPhone optimized" web apps, can anyone point to any actual efforts in the latter direction? Has anyone yet asked "iPad"?

Actions #28

Updated by Anonymous almost 14 years ago

Greg Thornton wrote:

Now that we know the difference between iPhone apps, other mobile apps, and now "iPhone optimized" web apps, can anyone point to any actual efforts in the latter direction? Has anyone yet asked "iPad"?

The normal website works well on the iPad so I don't see a need for an iPad version

Actions #29

Updated by Terence Mill over 13 years ago

+1

Actions #30

Updated by Semyon Vyskubov over 13 years ago

Hi All!

Here is an attached mobile.css file that makes a nice and compact view of Redmine for iPhone. (It's not a commented properly, sorry)

I've made some template edits also:

/app/views/layouts/base.rhtml (include mobile.css for iPhone)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; 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 'application', :media => 'all' %>
<%= javascript_include_tag :defaults %>
<%= heads_for_wiki_formatter %>
<!--[if IE]>
    <style type="text/css">
      * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
      body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
    </style>
<![endif]-->
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<link media="only screen and (max-device-width: 480px)" href="http://knossos.ru/mobile.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<div id="top-menu">
    <div id="account">
        <%= render_menu :account_menu -%>
    </div>
    <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
    <%= render_menu :top_menu -%>
</div>

<div id="header">
    <div id="quick-search">
        <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
        <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
        <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
        <% end %>
        <%= render_project_jump_box %>
    </div>

    <h1><%= page_header_title %></h1>

    <% if display_main_menu?(@project) %>
    <div id="main-menu">
        <%= render_main_menu(@project) %>
    </div>
    <% end %>
</div>

<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
    <div id="sidebar">        
        <%= yield :sidebar %>
        <%= call_hook :view_layouts_base_sidebar %>
    </div>

    <div id="content">
                <%= render_flash_messages %>
        <%= yield %>
        <%= call_hook :view_layouts_base_content %>
                <div style="clear:both;"></div>
    </div>
</div>

<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>

<div id="footer">
    Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2010 Jean-Philippe Lang
</div>
</div>
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>

/app/views/issues/_relations.rhtml (here some of relations tables cells are hidden)

<div class="contextual">
<% if authorize_for('issue_relations', 'new') %>
    <%= toggle_link l(:button_add), 'new-relation-form'%>
<% end %>
</div>

<p><strong><%=l(:label_related_issues)%></strong></p>

<% if @issue.relations.any? %>
<table width="100%">
<% @issue.relations.select {|r| r.other_issue(@issue).visible? }.each do |relation| %>
<tr>
<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
    <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
    <%= link_to_issue relation.other_issue(@issue) %>
</td>
<td class="mobile_hide"><%= relation.other_issue(@issue).status.name %></td>
<td class="mobile_hide"><%= format_date(relation.other_issue(@issue).start_date) %></td>
<td class="mobile_hide"><%= format_date(relation.other_issue(@issue).due_date) %></td>
<td class="mobile_hide"><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},                                              
                                                  :method => :post
                                                }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
</tr>
<% end %>
</table>
<% end %>

<% remote_form_for(:relation, @relation, 
                 :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue},
                 :method => :post,
                 :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %>
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
<% end %>

/app/views/_edit.rhtml (attach file field are hidden)

<% labelled_tabular_form_for :issue, @issue,
                             :url => {:action => 'edit', :id => @issue},
                             :html => {:id => 'issue-form',
                                       :class => nil,
                                       :multipart => true} do |f| %>
    <%= error_messages_for 'issue' %>
    <%= error_messages_for 'time_entry' %>
    <div class="box">
    <% if @edit_allowed || !@allowed_statuses.empty? %>
        <fieldset class="tabular"><legend><%= l(:label_change_properties) %>
        <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
        <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
        <% end %>
        </legend>
        <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
        </fieldset>
    <% end %>
    <% if authorize_for('timelog', 'edit') %>
        <fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
        <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
        <div class="splitcontentleft">
        <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
        </div>
        <div class="splitcontentright">
        <p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p>
        </div>
        <p><%= time_entry.text_field :comments, :size => 60 %></p>
        <% @time_entry.custom_field_values.each do |value| %>
            <p><%= custom_field_tag_with_label :time_entry, value %></p>
        <% end %>
        <% end %>
    </fieldset>
    <% end %>

    <fieldset><legend><%= l(:field_notes) %></legend>
    <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
    <%= wikitoolbar_for 'notes' %>
    <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>

    <p class="mobile_hide"><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
    </fieldset>
    </div>

    <%= f.hidden_field :lock_version %>
    <%= submit_tag l(:button_submit) %>
    <%= link_to_remote l(:label_preview), 
                       { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
                         :method => 'post',
                         :update => 'preview',
                         :with => 'Form.serialize("issue-form")',
                         :complete => "Element.scrollTo('preview')" 
                       }, :accesskey => accesskey(:preview) %>
<% end %>

<div id="preview" class="wiki"></div>

/app/views/show.rhtml (proper divide of issue's details table)

<%= render :partial => 'action_menu' %>

<h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>

<div class="<%= @issue.css_classes %> details">
        <%= avatar(@issue.author, :size => "50") %>
        <h3><%=h @issue.subject %></h3>
        <p class="author">
        <%= authoring @issue.created_on, @issue.author %>.
        <% if @issue.created_on != @issue.updated_on %>
        <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>.
        <% end %>
        </p>

<div class="splitcontentleft">
<table class="attributes">
<tr>
    <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td>
</tr>
<tr>
    <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td>
</tr>
<tr>
    <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
</tr>
<tr>
    <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td>
</tr>
<tr>
    <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
</tr>
<%= render_custom_fields_rows(@issue) %>
</table>
</div>

<div class="splitcontentright">
<table class="attributes">
<tr>
    <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td>
</tr>
<tr>
    <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td>
</tr>
<tr>
    <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
</tr>
<tr>
    <% if User.current.allowed_to?(:view_time_entries, @project) %>
    <th class="spent-time"><%=l(:label_spent_time)%>:</th>
    <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td>
    <% end %>
</tr>
<tr>
    <% if @issue.estimated_hours %>
    <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td>
    <% end %>
</tr>
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
</table>
</div>

<div style="clear: left;"><!-- --></div>

<hr />

<div class="contextual">
<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') unless @issue.description.blank? %>
</div>

<p><strong><%=l(:field_description)%></strong></p>
<div class="wiki">
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
</div>

<%= link_to_attachments @issue %>

<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>

<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
<hr />
<div id="relations">
<%= render :partial => 'relations' %>
</div>
<% end %>

<% if User.current.allowed_to?(:add_issue_watchers, @project) ||
        (@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
<hr />
<div id="watchers">
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
</div>
<% end %>

</div>

<% if @changesets.any? %>
<div id="issue-changesets">
<h3><%=l(:label_associated_revisions)%></h3>
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
</div>
<% end %>

<% if @journals.any? %>
<div id="history">
<h3><%=l(:label_history)%></h3>
<%= render :partial => 'history', :locals => { :journals => @journals } %>
</div>
<% end %>

<%= render :partial => 'action_menu', :locals => {:replace_watcher => 'watcher2' } %>

<div style="clear: both;"></div>

<% if authorize_for('issues', 'edit') %>
  <div id="update" style="display:none;">
  <h3><%= l(:button_update) %></h3>
  <%= render :partial => 'edit' %>
  </div>
<% end %>

<% other_formats_links do |f| %>
    <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
    <%= f.link_to 'PDF' %>
<% end %>

<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>

<% content_for :sidebar do %>
    <%= render :partial => 'issues/sidebar' %>
<% end %>

<% content_for :header_tags do %>
    <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
    <%= stylesheet_link_tag 'scm' %>
<% end %>

Actions #31

Updated by Semyon Vyskubov over 13 years ago

PS: mobile.css is not completed. I've only tested it for basic pages like "My Page" and issues details.

Actions #32

Updated by Semyon Vyskubov over 13 years ago

PSS: We're working with Redmine 1.0.0

Actions #33

Updated by Semyon Vyskubov over 13 years ago

Oh... Sorry for lot of messages.
Just clarified version in /admin/info/ and here is a Redmine 0.9.4.stable.3733 (SQLite).
1.0.0 i've took from CHANGELOG file, and guess it's not a propper enough.
Thanks all!

Actions #34

Updated by Ian Epperson over 13 years ago

I'm not sure the best approach is to use an app. An app wont pick up plugins easily nor grab any local changes. An app is good for allowing to add issues while offline, but challenging to update existing issues. Also an app is more challenging for open source development - it really needs to be owned by a single individual who is active in development, it doesn't work so well to pass it from developer to developer.

Anyway, this would be really cool to see happen. At some point, I could probably help hack on it a bit too.

Actions #35

Updated by Daniel Felix about 11 years ago

  • Assignee deleted (Jim Mulholland)

A newer approach to solve this, would be the usage of media queries.
With this technology, there's a good way to customize the display of Redmine depending on the window width.

Further, I want to clarify, that there should be a MOBILE theme not just an iPhone specific theme.

This implementation won't be easy, as there are many rules which needs to be tweaked.

Actions #36

Updated by Daniel Felix about 11 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Well, I rechecked #883.

I will close this issue, in favour of #883. As a mobile theme would be much better as an implementation for every mobile OS.
All iPhone user can use one of the good Apps or can use the normal mobile theme, which is described in #883.

Actions #37

Updated by Jan from Planio www.plan.io about 9 years ago

  • Related to Feature #19097: Responsive layout for mobile devices added
Actions #38

Updated by Toshi MARUYAMA over 8 years ago

  • Related to deleted (Feature #19097: Responsive layout for mobile devices)
Actions

Also available in: Atom PDF